Commit db4df282 authored by Jérome Perrin's avatar Jérome Perrin

reraise the original exception raised by "allowed" (usefull if verbose security

is enabled)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24610 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b726f618
...@@ -1702,7 +1702,7 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1702,7 +1702,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
if default is not _marker: if default is not _marker:
return default return default
else: else:
raise Unauthorized('unauthorized access to element %s' % key) raise
return obj return obj
# XXX Currently, resolveCategory accepts that a category might # XXX Currently, resolveCategory accepts that a category might
......
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