Commit c7cf678e authored by Julien Muchembled's avatar Julien Muchembled

Set 'Modify portal content' instead of 'View' for 'update_local_roles' action

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29658 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 677aa485
......@@ -49,7 +49,7 @@
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
<string>Modify portal content</string>
</tuple>
</value>
</item>
......
1332
\ No newline at end of file
1333
\ No newline at end of file
......@@ -159,7 +159,8 @@ class LocalRoleAssignorMixIn(object):
"""Return all Role Information objects stored on this portal type"""
return self.objectValues(meta_type='ERP5 Role Information')
security.declareProtected(Permissions.View, 'updateRoleMapping')
security.declareProtected(Permissions.ModifyPortalContent,
'updateRoleMapping')
def updateRoleMapping(self, REQUEST=None, form_id=''):
"""Update the local roles in existing objects.
XXX This should be implemented the same way as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment