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

Use convertable error.

parent b2de7b91
...@@ -107,8 +107,7 @@ def _assertACI(document): ...@@ -107,8 +107,7 @@ def _assertACI(document):
if sm.checkPermission(access_contents_information, 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 ValueError('User %r has no access to %r' % (sm.getUser(), document))
raise Unauthorized
_MARKER = [] _MARKER = []
......
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