@@ -2106,8 +2093,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
foracquire_view_permissionin(True,False):
forview_role_listin(['Owner','Author'],
['Author']):
object=object_dict[getObjectDictKey()]
result=query('SELECT roles_and_users.uid FROM roles_and_users, catalog WHERE roles_and_users.uid = catalog.security_uid AND catalog.uid = %i AND allowedRolesAndUsers = "user:bar:Whatever"'%(object.uid,))
obj=object_dict[getObjectDictKey()]
result=query('SELECT roles_and_users.uid FROM roles_and_users, catalog WHERE roles_and_users.uid = catalog.security_uid AND catalog.uid = %i AND allowedRolesAndUsers = "user:bar:Whatever"'%(obj.uid,))
# Check that no 'bar' role are in security table when 'foo' has local
...
...
@@ -2119,12 +2106,11 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
foracquire_view_permissionin(True,False):
forview_role_listin(['Owner','Author'],
['Author']):
object=object_dict[getObjectDictKey()]
result=query('SELECT roles_and_users.uid, roles_and_users.allowedRolesAndUsers FROM roles_and_users, catalog WHERE roles_and_users.uid = catalog.security_uid AND catalog.uid = %i AND roles_and_users.allowedRolesAndUsers LIKE "user:bar%%"'%(object.uid,))
obj=object_dict[getObjectDictKey()]
result=query('SELECT roles_and_users.uid, roles_and_users.allowedRolesAndUsers FROM roles_and_users, catalog WHERE roles_and_users.uid = catalog.security_uid AND catalog.uid = %i AND roles_and_users.allowedRolesAndUsers LIKE "user:bar%%"'%(obj.uid,))