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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amrani
erp5
Commits
0c8c8434
Commit
0c8c8434
authored
Oct 09, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Honour previous reindex parameter behaviour.
parent
e33c642b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+3
-2
No files found.
product/ERP5Type/ERP5Type.py
View file @
0c8c8434
...
@@ -81,7 +81,7 @@ class LocalRoleAssignorMixIn(object):
...
@@ -81,7 +81,7 @@ class LocalRoleAssignorMixIn(object):
Assign Local Roles to Groups on object 'ob', based on Portal Type Role
Assign Local Roles to Groups on object 'ob', based on Portal Type Role
Definitions and "ERP5 Role Definition" objects contained inside 'ob'.
Definitions and "ERP5 Role Definition" objects contained inside 'ob'.
Reindex
is obsoleted, as there is modification detec
tion.
Reindex
ation will be done only if there is any modifica
tion.
"""
"""
if
user_name
is
None
:
if
user_name
is
None
:
# First try to guess from the owner
# First try to guess from the owner
...
@@ -107,6 +107,7 @@ class LocalRoleAssignorMixIn(object):
...
@@ -107,6 +107,7 @@ class LocalRoleAssignorMixIn(object):
if
ac_local_roles
!=
current_roles
:
if
ac_local_roles
!=
current_roles
:
# apply changes and reindex only in case if roles has been changed
# apply changes and reindex only in case if roles has been changed
ob
.
__ac_local_roles__
=
ac_local_roles
ob
.
__ac_local_roles__
=
ac_local_roles
if
reindex
:
ob
.
reindexObjectSecurity
()
ob
.
reindexObjectSecurity
()
security
.
declarePrivate
(
"getLocalRolesFor"
)
security
.
declarePrivate
(
"getLocalRolesFor"
)
...
...
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