Commit afaa84c1 authored by Sebastien Robin's avatar Sebastien Robin

check if there is already permission on manage_setLocaLPermissions


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1167 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a454122e
...@@ -1295,6 +1295,7 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana ...@@ -1295,6 +1295,7 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
""" """
permission_name = pname(permission) permission_name = pname(permission)
if local_permission_list is None: if local_permission_list is None:
if hasattr(self,permission_name):
delattr(self,permission_name) delattr(self,permission_name)
else: else:
if type(local_permission_list) is type('a'): if type(local_permission_list) is type('a'):
......
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