permission::toggle_inherit (public)
permission::toggle_inherit -object_id object_id
Defined in packages/acs-tcl/tcl/acs-permissions-procs.tcl
toggle whether or not this object inherits permissions from its parent
- Switches:
- -object_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- test_inheritance_and_custom_permissions
Source code: db_dml toggle_inherit {} permission::permission_thread_cache_flushGeneric XQL file: packages/acs-tcl/tcl/acs-permissions-procs.xql
PostgreSQL XQL file: <fullquery name="permission::toggle_inherit.toggle_inherit"> <querytext> update acs_objects set security_inherit_p = not security_inherit_p where object_id = :object_id </querytext> </fullquery>packages/acs-tcl/tcl/acs-permissions-procs-postgresql.xql
Oracle XQL file: <fullquery name="permission::toggle_inherit.toggle_inherit"> <querytext> update acs_objects set security_inherit_p = case when security_inherit_p = 't' then 'f' else 't' end where object_id = :object_id </querytext> </fullquery>packages/acs-tcl/tcl/acs-permissions-procs-oracle.xql