Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 2574:1a041cda628c
make user permissions check more sane (fix search page for anonymous)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 14 Jul 2004 04:14:52 +0000 |
| parents | 1f4791438b65 |
| children | e90d63c7eceb |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Jul 14 01:24:22 2004 +0000 +++ b/roundup/cgi/templating.py Wed Jul 14 04:14:52 2004 +0000 @@ -1033,6 +1033,7 @@ # may anonymous users register? (so, they need to be anonymous, # need the Web Rego permission, and not trying to view an item) rego = s.hasPermission('Web Registration', userid, self._classname) + rego = rego and self._client.template == 'register' if is_anonymous and rego and getattr(self, '_nodeid', None) is None: return 1
