select security_inherit_p from acs_objects where object_id = :object_id select count(*) as num_children from acs_objects o where context_id = :object_id and exists (select 1 from acs_object_party_privilege_map where object_id = o.object_id and party_id = :user_id and privilege = 'admin')