Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
09ddeb1c
Commit
09ddeb1c
authored
8 years ago
by
Kazuhiko Shiozaki
Committed by
Vincent Pelletier
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_administration: display Login information as well in Base_viewSecurity.
parent
d90f1a08
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Base_viewSecurity.py
...tem/portal_skins/erp5_administration/Base_viewSecurity.py
+10
-1
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Base_viewSecurity.py
View file @
09ddeb1c
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment