diff --git a/app/cli.py b/app/cli.py index cd35166d..d9124105 100644 --- a/app/cli.py +++ b/app/cli.py @@ -117,6 +117,8 @@ def register(app): print("Added 'Peertube Isolation' blocklist, see https://peertube_isolation.frama.io/") # Initial roles + # These roles will create rows in the 'role' table with IDs of 1,2,3,4. There are some constants (ROLE_*) in + # constants.py that will need to be updated if the role IDs ever change. anon_role = Role(name='Anonymous user', weight=0) anon_role.permissions.append(RolePermission(permission='register')) db.session.add(anon_role)