Commit 894f23d9 authored by Jérome Perrin's avatar Jérome Perrin

note that assignRoleToSecurityGroup is deprecated


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10548 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b849f9d8
...@@ -2334,7 +2334,6 @@ class Base( CopyContainer, ...@@ -2334,7 +2334,6 @@ class Base( CopyContainer,
return None return None
return None return None
security.declareProtected(Permissions.ChangeLocalRoles, security.declareProtected(Permissions.ChangeLocalRoles,
'updateLocalRolesOnSecurityGroups') 'updateLocalRolesOnSecurityGroups')
def updateLocalRolesOnSecurityGroups(self, **kw): def updateLocalRolesOnSecurityGroups(self, **kw):
...@@ -2347,8 +2346,8 @@ class Base( CopyContainer, ...@@ -2347,8 +2346,8 @@ class Base( CopyContainer,
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'assignRoleToSecurityGroup') 'assignRoleToSecurityGroup')
def assignRoleToSecurityGroup(self, **kw): def assignRoleToSecurityGroup(self, **kw):
"""This is basically the same as `updateLocalRolesOnSecurityGroups`, but """DEPRECATED. This is basically the same as
with a different permission. `updateLocalRolesOnSecurityGroups`, but with a different permission.
""" """
warnings.warn('assignRoleToSecurityGroup is a deprecated alias to ' warnings.warn('assignRoleToSecurityGroup is a deprecated alias to '
'updateLocalRolesOnSecurityGroups. Please note that the ' 'updateLocalRolesOnSecurityGroups. Please note that the '
......
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