Commit 0f46f529 authored by Romain Courteaud's avatar Romain Courteaud

Anonymous do not have security mapping.

parent db857005
...@@ -75,10 +75,11 @@ print \'\'\'\n ...@@ -75,10 +75,11 @@ print \'\'\'\n
----------------\n ----------------\n
Security mapping\n Security mapping\n
----------------\'\'\'\n ----------------\'\'\'\n
try:\n if u.getId() is not None:\n
print context.Base_viewSecurityMappingAsUser(u.getId())\n try:\n
except Unauthorized:\n print context.Base_viewSecurityMappingAsUser(u.getId())\n
print "user doesn\'t have permission to security mapping in this context"\n except Unauthorized:\n
print "user doesn\'t have permission to security mapping in this context"\n
\n \n
return printed\n return printed\n
</string> </value> </string> </value>
......
140 141
\ No newline at end of file \ No newline at end of file
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