Index: openacs-4/packages/acs-subsite/www/permissions/perm-include-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/permissions/perm-include-postgresql.xql,v diff -u -r1.4 -r1.4.18.1 --- openacs-4/packages/acs-subsite/www/permissions/perm-include-postgresql.xql 24 Feb 2005 13:33:01 -0000 1.4 +++ openacs-4/packages/acs-subsite/www/permissions/perm-include-postgresql.xql 3 Jul 2016 15:03:44 -0000 1.4.18.1 @@ -57,12 +57,10 @@ ) ptab, acs_objects o where o.object_id = ptab.grantee_id - and not exists (select 1 from acs_object_party_privilege_map p where p.object_id = acs__magic_object_id('security_context_root') and p.party_id = ptab.grantee_id and p.privilege = 'admin') + and not acs_permission__permission_p(acs__magic_object_id('security_context_root'), ptab.grantee_id, 'admin') group by ptab.grantee_id, grantee_name, object_type order by object_type desc, grantee_name - -