diff roundup/security.py @ 1218:4c9882cb16a3

more docco work
author Richard Jones <richard@users.sourceforge.net>
date Thu, 26 Sep 2002 00:02:24 +0000
parents 9b910e8d987d
children 9b93d140b8e6
line wrap: on
line diff
--- a/roundup/security.py	Thu Sep 26 00:01:51 2002 +0000
+++ b/roundup/security.py	Thu Sep 26 00:02:24 2002 +0000
@@ -99,7 +99,7 @@
         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:

Roundup Issue Tracker: http://roundup-tracker.org/