Commit c745466c authored by Sebastien Robin's avatar Sebastien Robin

small update in manage_setLocalPermissions


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b97a091e
......@@ -1297,7 +1297,9 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
if local_permission_list is None:
delattr(self,permission_name)
else:
setattr(self,permission_name,local_permission_list)
if type(local_permission_list) is type('a'):
local_permission_list = (local_permission_list,)
setattr(self,tuple(permission_name),local_permission_list)
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