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

Use convertable error.

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