Commit c0a9551e authored by Sebastien Robin's avatar Sebastien Robin

ZSQLCatalog: allow managers to use getSQLCatalogSecurityUidGroupsColumnsDict

This method is useful by some scripts of erp5_administration
parent 11d821c7
......@@ -34,6 +34,7 @@ from Shared.DC.ZRDB.TM import TM
from Acquisition import aq_parent, aq_inner, aq_base
from zLOG import LOG, WARNING, INFO, TRACE, ERROR
from ZODB.POSException import ConflictError
from Products.CMFCore import permissions
from Products.PythonScripts.Utility import allow_class
import time
......@@ -678,7 +679,7 @@ class Catalog(Folder,
role_key_dict[role.strip()] = column.strip()
return role_key_dict.items()
security.declarePrivate('getSQLCatalogSecurityUidGroupsColumnsDict')
security.declareProtected(permissions.ManagePortal, 'getSQLCatalogSecurityUidGroupsColumnsDict')
def getSQLCatalogSecurityUidGroupsColumnsDict(self):
"""
Return a mapping of local_roles_group_id name to the name of the column
......
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