suppress checking for options in security check
This commit is contained in:
parent
31b81d10e3
commit
61a146a43d
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,7 @@ def getOption(obj, option, checkType=True):
|
||||||
return opt[0]
|
return opt[0]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def canAccessObject(obj):
|
def canAccessObjectWithOption(obj):
|
||||||
if not canAccess(obj, 'title'):
|
if not canAccess(obj, 'title'):
|
||||||
return False
|
return False
|
||||||
perm = getOption(obj, 'access_permission')
|
perm = getOption(obj, 'access_permission')
|
||||||
|
@ -97,6 +97,9 @@ def canAccessObject(obj):
|
||||||
return True
|
return True
|
||||||
return checkPermission(perm, obj)
|
return checkPermission(perm, obj)
|
||||||
|
|
||||||
|
def canAccessObject(obj):
|
||||||
|
return canAccess(obj, 'title')
|
||||||
|
|
||||||
def canListObject(obj, noCheck=False):
|
def canListObject(obj, noCheck=False):
|
||||||
if noCheck:
|
if noCheck:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Reference in a new issue