X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Fsecurity.py;h=241715d80b356d64ac2ff4ddd17bcdc1213f6a4f;hb=4f9b23d1dd4d91d0a3e5f3dfddb91700837c9a9f;hp=3c87c48cc93263466fcac678cc1321513c6da103;hpb=d716805c5f8c2f3737d0ce989bae671083230b49;p=roundup.git diff --git a/roundup/security.py b/roundup/security.py index 3c87c48..241715d 100644 --- a/roundup/security.py +++ b/roundup/security.py @@ -98,7 +98,7 @@ class Security: roles = self.db.user.get(userid, 'roles') if roles is None: return 0 - for rolename in [x.lower() for x in roles.split(',')]: + for rolename in [x.lower().strip() for x in roles.split(',')]: if not rolename or not self.role.has_key(rolename): continue # for each of the user's Roles, check the permissions