From: schlatterbeck Date: Wed, 20 Oct 2010 20:24:09 +0000 (+0000) Subject: - admin permissions are special: the classname is None which means X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c43884bddb26b20d7f3c8501b36470f6c0659b26;p=roundup.git - admin permissions are special: the classname is None which means "access everywhere". Now search-permissions work for admin, too... git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4552 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/security.py b/roundup/security.py index 6ce330f..e46e291 100644 --- a/roundup/security.py +++ b/roundup/security.py @@ -63,7 +63,7 @@ class Permission: return 0 # are we checking the correct class - if self.klass != classname: + if self.klass is not None and self.klass != classname: return 0 # what about property?