diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index 1ce6fbaab31fefec27b0727584777cc1a1424d4a..b249da2c1992f600f55d000bd097dbd7ebf1e522 100644 --- a/product/ERP5Catalog/CatalogTool.py +++ b/product/ERP5Catalog/CatalogTool.py @@ -415,8 +415,8 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): getSecurityQuery instead """ user = _getAuthenticatedUser(self) - user_is_superuser = (user == SUPER_USER) user_str = str(user) + user_is_superuser = (user_str == SUPER_USER) allowedRolesAndUsers = self._listAllowedRolesAndUsers(user) role_column_dict = {} column_map = self.getSQLCatalog().getColumnMap()