Commit 626460bf authored by Fabien Morin's avatar Fabien Morin

setSecurityManager even if the user has the permission


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24553 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 998dde9c
......@@ -104,7 +104,7 @@ class AssertNoPermissionMethod(object):
'User %s has %s permission on %s %s (roles: [%s])' %
(username, self._permission_name, document.getPortalTypeName(),
document, ', '.join(user.getRolesInContext(document))))
except:
finally:
setSecurityManager(sm)
......
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