Commit 4ea696a9 authored by Kevin Deldycke's avatar Kevin Deldycke

Revert changes: the bug must be corrected in ERP5Type_asSecurityGroupId instead of here.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4549 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 62ac6a1a
...@@ -549,11 +549,7 @@ class ERP5Site ( CMFSite, FolderMixIn ): ...@@ -549,11 +549,7 @@ class ERP5Site ( CMFSite, FolderMixIn ):
""" """
Return List of category values to generate security groups. Return List of category values to generate security groups.
""" """
category_tuple = self._getPortalGroupedCategoryList('assignment') or self._getPortalConfiguration('portal_assignment_base_category_list') return self._getPortalGroupedCategoryList('assignment') or self._getPortalConfiguration('portal_assignment_base_category_list')
category_list = []
if category_tuple not in (None, '', (), []):
category_list = [ x for x in category_tuple]
return category_list
security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId') security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type): def getDefaultModuleId(self, portal_type):
......
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