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
Boris Kocherov
erp5
Commits
0f22c0b3
Commit
0f22c0b3
authored
Jul 28, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add getViewPermissionAssociate just same as getViewPermissionAssignor.
parent
16802d05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5Catalog/CatalogTool.py
product/ERP5Catalog/CatalogTool.py
+8
-0
No files found.
product/ERP5Catalog/CatalogTool.py
View file @
0f22c0b3
...
...
@@ -184,6 +184,14 @@ class IndexableObjectWrapper(object):
"""
return
self
.
_getSecurityParameterList
()[
2
].
get
(
'Assignor'
,
None
)
def
getViewPermissionAssociate
(
self
):
"""Returns the user ID of the user with 'Associate' local role on this
document, if the Associate role has View permission.
If there is more than one Associate local role, the result is undefined.
"""
return
self
.
_getSecurityParameterList
()[
2
].
get
(
'Associate'
,
None
)
def
__repr__
(
self
):
return
'<Products.ERP5Catalog.CatalogTool.IndexableObjectWrapper'
\
' for %s>'
%
(
'/'
.
join
(
self
.
__ob
.
getPhysicalPath
()),
)
...
...
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