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