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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
09ddeb1c
Commit
09ddeb1c
authored
Oct 27, 2016
by
Kazuhiko Shiozaki
Committed by
Vincent Pelletier
Dec 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_administration: display Login information as well in Base_viewSecurity.
parent
d90f1a08
Changes
1
Hide 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
)
...
...
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