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

Anonymous do not have security mapping.

parent db857005
...@@ -75,9 +75,10 @@ print \'\'\'\n ...@@ -75,9 +75,10 @@ print \'\'\'\n
----------------\n ----------------\n
Security mapping\n Security mapping\n
----------------\'\'\'\n ----------------\'\'\'\n
try:\n if u.getId() is not None:\n
try:\n
print context.Base_viewSecurityMappingAsUser(u.getId())\n print context.Base_viewSecurityMappingAsUser(u.getId())\n
except Unauthorized:\n except Unauthorized:\n
print "user doesn\'t have permission to security mapping in this context"\n print "user doesn\'t have permission to security mapping in this context"\n
\n \n
return printed\n return printed\n
......
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