diff roundup/cgi/client.py @ 4329:58b7ba47af87

fixes to make registration work again
author Richard Jones <richard@users.sourceforge.net>
date Fri, 29 Jan 2010 05:46:59 +0000
parents 095d92109cc7
children 85b00a3820b3
line wrap: on
line diff
--- a/roundup/cgi/client.py	Fri Jan 29 05:29:49 2010 +0000
+++ b/roundup/cgi/client.py	Fri Jan 29 05:46:59 2010 +0000
@@ -738,6 +738,12 @@
         if action in ('login', 'register'):
             return
 
+        # allow Anonymous to view the "user" "register" template if they're
+        # allowed to register
+        if (self.db.security.hasPermission('Register', self.userid, 'user')
+                and self.classname == 'user' and self.template == 'register'):
+            return
+
         # otherwise for everything else
         if self.user == 'anonymous':
             if not self.db.security.hasPermission('Web Access', self.userid):

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