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

Anonymous do not have security mapping.

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