From c43884bddb26b20d7f3c8501b36470f6c0659b26 Mon Sep 17 00:00:00 2001 From: schlatterbeck Date: Wed, 20 Oct 2010 20:24:09 +0000 Subject: [PATCH] - 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 --- roundup/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- 2.30.2