Commit c9836639 authored by Jean-Paul Smets's avatar Jean-Paul Smets

added alias to ERP5Type for local roles support


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5213 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe392aba
......@@ -2183,6 +2183,14 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
"""
return []
security.declareProtected(Permissions.ModifyPortalContent,'assignRoleToSecurityGroup')
def assignRoleToSecurityGroup(self):
"""
Set or reset local roles assignments based on local roles
definition in portal type.
"""
self._getTypesTool()[self.getPortalType()].assignRoleToSecurityGroup(self)
InitializeClass(Base)
class TempBase(Base):
......
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