comparison roundup/security.py @ 4443:9edbab31e2ac

- admin permissions are special: the classname is None which means "access everywhere". Now search-permissions work for admin, too...
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Wed, 20 Oct 2010 20:24:09 +0000
parents 222efa59ee6c
children 8137456a86f3
comparison
equal deleted inserted replaced
4440:7c576a4dea9d 4443:9edbab31e2ac
61 """ 61 """
62 if self.name not in ('View', 'Search'): 62 if self.name not in ('View', 'Search'):
63 return 0 63 return 0
64 64
65 # are we checking the correct class 65 # are we checking the correct class
66 if self.klass != classname: 66 if self.klass is not None and self.klass != classname:
67 return 0 67 return 0
68 68
69 # what about property? 69 # what about property?
70 if not self._properties_dict[property]: 70 if not self._properties_dict[property]:
71 return 0 71 return 0

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