Commit f2049b2d authored by Jérome Perrin's avatar Jérome Perrin

don't compare user object and user id


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f46977dc
...@@ -415,8 +415,8 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -415,8 +415,8 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
getSecurityQuery instead getSecurityQuery instead
""" """
user = _getAuthenticatedUser(self) user = _getAuthenticatedUser(self)
user_is_superuser = (user == SUPER_USER)
user_str = str(user) user_str = str(user)
user_is_superuser = (user_str == SUPER_USER)
allowedRolesAndUsers = self._listAllowedRolesAndUsers(user) allowedRolesAndUsers = self._listAllowedRolesAndUsers(user)
role_column_dict = {} role_column_dict = {}
column_map = self.getSQLCatalog().getColumnMap() column_map = self.getSQLCatalog().getColumnMap()
......
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