Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
wendelin
Commits
57c784cb
Commit
57c784cb
authored
Apr 29, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rather than update local roles on this portal_type instance update ALL instances.
parent
64a63567
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.py
...delin/BusinessConfiguration_afterWendelinConfiguration.py
+1
-1
No files found.
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.py
View file @
57c784cb
...
@@ -35,7 +35,7 @@ if default_security_model_business_template is not None:
...
@@ -35,7 +35,7 @@ if default_security_model_business_template is not None:
for
portal_type
in
default_security_model_business_template
.
getTemplatePortalTypeRoleList
():
for
portal_type
in
default_security_model_business_template
.
getTemplatePortalTypeRoleList
():
portal_type_instance
=
getattr
(
portal
.
portal_types
,
portal_type
)
portal_type_instance
=
getattr
(
portal
.
portal_types
,
portal_type
)
print
"Updated Role Mappings for %s"
%
portal_type
print
"Updated Role Mappings for %s"
%
portal_type
portal_type_instance
.
update
LocalRolesOnSecurityGroups
()
portal_type_instance
.
update
RoleMapping
()
# updata local roles (if any)
# updata local roles (if any)
business_template
=
context
.
getSpecialiseValue
()
business_template
=
context
.
getSpecialiseValue
()
...
...
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