1. python_mirrors
  2. tracker/setuptools


martin.v.loewis  committed b3a89eb Draft

r4238: Add Register permission.

  • Participants
  • Parent commits d69226b
  • Branches default

Comments (0)

Files changed (1)

File schema.py

View file
                 roles=String(),     # comma-separated string of Role names
+db.security.addPermission(name='Register', klass='user',
+                          description='User is allowed to register new user')
 # FileClass automatically gets this property in addition to the Class ones:
 #   content = String()    [saved to disk in <tracker home>/db/files/]
 # Assign the appropriate permissions to the anonymous user's Anonymous
 # Role. Choices here are:
 # - Allow anonymous users to register
-db.security.addPermissionToRole('Anonymous', 'Create', 'user')
+db.security.addPermissionToRole('Anonymous', 'Register', 'user')
 # Allow anonymous users access to view issues (and the related, linked
 # information)