Commit 4f5b5c5f authored by 's avatar

Added has_role to superuser - always returns true!

parent 9cb90c00
"""Access control package"""
__version__='$Revision: 1.44 $'[11:-2]
__version__='$Revision: 1.45 $'[11:-2]
from PersistentMapping import PersistentMapping
......@@ -75,6 +75,7 @@ except:
super=User('superuser','123',('manage',))
super.hasRole=lambda parent, roles=None: 1
super.has_role=lambda roles=None: 1
nobody=User('Anonymous User','',('Anonymous',))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment