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):
%3 test_test_inheritance_and_custom_permissions test_inheritance_and_custom_permissions (test acs-tcl) permission::toggle_inherit permission::toggle_inherit test_test_inheritance_and_custom_permissions->permission::toggle_inherit db_dml db_dml (public) permission::toggle_inherit->db_dml permission::permission_thread_cache_flush permission::permission_thread_cache_flush (private) permission::toggle_inherit->permission::permission_thread_cache_flush packages/acs-subsite/www/permissions/toggle-inherit.tcl packages/acs-subsite/ www/permissions/toggle-inherit.tcl packages/acs-subsite/www/permissions/toggle-inherit.tcl->permission::toggle_inherit

Testcases:
test_inheritance_and_custom_permissions
Source code:
    db_dml toggle_inherit {}
    permission::permission_thread_cache_flush
Generic 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

[ hide source ]
Show another procedure: