Commit eeb3ba17 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Set missing proxy roles on Person_hasRequiredRole

parent d36a0310
if REQUEST is not None:
from zExceptions import Unauthorized
raise Unauthorized
if role_id in context.getRoleList():
return True
......
......@@ -50,7 +50,15 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>role_id</string> </value>
<value> <string>role_id, REQUEST=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
......
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