Commit 09ddeb1c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Vincent Pelletier

erp5_administration: display Login information as well in Base_viewSecurity.

parent d90f1a08
......@@ -4,7 +4,16 @@ from pprint import pformat
u = getSecurityManager().getUser()
print 'User:', u
user_value = u.getUserValue()
if user_value is None:
print 'User ID:', u.getId()
else:
print 'User ID:', u.getId(), user_value.getPath()
login_value = u.getLoginValue()
if login_value is None:
print 'Login:', u.getUserName()
else:
print 'Login:', u.getUserName(), login_value.getPath()
print 'Is owner:', u.allowed(context,('Owner',))
print 'User roles:', u.getRoles()
print 'User roles in context:', u.getRolesInContext(context)
......
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