Skip to content

Commit 08baab3

Browse files
author
Ralf Schlatterbeck
committed
- admin permissions are special:
the classname is None which means "access everywhere". Now search-permissions work for admin, too...
1 parent 5744f3c commit 08baab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def searchable(self, classname, property):
6363
return 0
6464

6565
# are we checking the correct class
66-
if self.klass != classname:
66+
if self.klass is not None and self.klass != classname:
6767
return 0
6868

6969
# what about property?

0 commit comments

Comments
 (0)