X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Fsecurity.py;h=0526b4eb8c66e3e0730d550fc42744a7229d4cce;hb=acd718eb6d28335be2c805236b238c27d5d8d7e2;hp=e9f196efd74a7146e6c927b43c06f8c692976c55;hpb=e8e0c9b06279ec296229fcbe2f1c308f4f67afb8;p=roundup.git diff --git a/roundup/security.py b/roundup/security.py index e9f196e..0526b4e 100644 --- a/roundup/security.py +++ b/roundup/security.py @@ -99,7 +99,7 @@ class Security: if roles is None: return 0 for rolename in roles.split(','): - if not rolename: + if not rolename or not self.role.has_key(rolename): continue # for each of the user's Roles, check the permissions for perm in self.role[rolename].permissions: