Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 4328:3d224f7fb364 | 4329:58b7ba47af87 |
|---|---|
| 734 elif self.form.has_key('@action'): | 734 elif self.form.has_key('@action'): |
| 735 action = self.form['@action'].value.lower() | 735 action = self.form['@action'].value.lower() |
| 736 else: | 736 else: |
| 737 action = None | 737 action = None |
| 738 if action in ('login', 'register'): | 738 if action in ('login', 'register'): |
| 739 return | |
| 740 | |
| 741 # allow Anonymous to view the "user" "register" template if they're | |
| 742 # allowed to register | |
| 743 if (self.db.security.hasPermission('Register', self.userid, 'user') | |
| 744 and self.classname == 'user' and self.template == 'register'): | |
| 739 return | 745 return |
| 740 | 746 |
| 741 # otherwise for everything else | 747 # otherwise for everything else |
| 742 if self.user == 'anonymous': | 748 if self.user == 'anonymous': |
| 743 if not self.db.security.hasPermission('Web Access', self.userid): | 749 if not self.db.security.hasPermission('Web Access', self.userid): |
