postgresql7.1
select acs_permission__grant_permission(
:object_id,
:party_id,
:privilege
);
select acs_permission__revoke_permission(
:object_id,
:party_id,
:privilege
);
update acs_objects
set security_inherit_p = not security_inherit_p
where object_id = :object_id
select distinct o.title, p.party_id
from acs_permission.parties_with_object_privilege(:object_id, :privilege) p, acs_objects o
where p.party_id = o.object_id