diff share/roundup/templates/classic/schema.py @ 4146:42331c201b02

Fix issue2550553.
author Stefan Seefeld <stefan@seefeld.name>
date Tue, 30 Jun 2009 01:41:11 +0000
parents 34434785f308
children b30bdfae4461
line wrap: on
line diff
--- a/share/roundup/templates/classic/schema.py	Tue Jun 30 01:32:06 2009 +0000
+++ b/share/roundup/templates/classic/schema.py	Tue Jun 30 01:41:11 2009 +0000
@@ -47,6 +47,8 @@
                 roles=String(),     # comma-separated string of Role names
                 timezone=String())
 user.setkey("username")
+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/]
@@ -154,7 +156,7 @@
 # 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)

Roundup Issue Tracker: http://roundup-tracker.org/