Code

- admin permissions are special: the classname is None which means
authorschlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 20 Oct 2010 20:24:09 +0000 (20:24 +0000)
committerschlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 20 Oct 2010 20:24:09 +0000 (20:24 +0000)
  "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

roundup/security.py

index 6ce330fa0e882361a1f4af187d88f754ec4430b7..e46e291c36c6c65630439121db834cb3638a6bbf 100644 (file)
@@ -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?