Commit f86afddf authored by Łukasz Nowak's avatar Łukasz Nowak

Log some information about disallowing access.

parent 87d31e14
...@@ -103,9 +103,11 @@ def convertToREST(function): ...@@ -103,9 +103,11 @@ def convertToREST(function):
return wrapper return wrapper
def _assertACI(document): def _assertACI(document):
if getSecurityManager().checkPermission(access_contents_information, sm = getSecurityManager()
if sm.checkPermission(access_contents_information,
document): document):
return document return document
LOG('_assertACI', INFO, 'User %r has no access to %r' % (sm.getUser(), document))
raise Unauthorized raise Unauthorized
......
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