Commit 5cff8cab authored by Ken Manheimer's avatar Ken Manheimer

Super.has_role(): Add optional arg for congruence with BasicUser

has_role.
parent 3d4acc86
......@@ -84,7 +84,7 @@
##############################################################################
"""Access control package"""
__version__='$Revision: 1.82 $'[11:-2]
__version__='$Revision: 1.83 $'[11:-2]
import Globals, App.Undo, socket, regex
from Globals import HTMLFile, MessageDialog, Persistent, PersistentMapping
......@@ -277,7 +277,7 @@ class Super(User):
hasRole=allowed
def has_role(self, roles): return 1
def has_role(self, roles, object=None): return 1
def has_permission(self, permission, object): return 1
......
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