permission::grant (public)

 permission::grant -party_id party_id -object_id object_id \
    -privilege privilege

Defined in packages/acs-tcl/tcl/acs-permissions-procs.tcl

grant privilege Y to party X on object Z

Switches:
-party_id (required)
-object_id (required)
-privilege (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_admin_merge_MergeUserInfo acs_admin_merge_MergeUserInfo (test acs-admin) permission::grant permission::grant test_acs_admin_merge_MergeUserInfo->permission::grant test_acs_subsite_expose_bug_775 acs_subsite_expose_bug_775 (test acs-subsite) test_acs_subsite_expose_bug_775->permission::grant test_ad_proc_permission_grant_and_revoke ad_proc_permission_grant_and_revoke (test acs-tcl) test_ad_proc_permission_grant_and_revoke->permission::grant test_ad_proc_permission_permission_p ad_proc_permission_permission_p (test acs-tcl) test_ad_proc_permission_permission_p->permission::grant test_test_inheritance_and_custom_permissions test_inheritance_and_custom_permissions (test acs-tcl) test_test_inheritance_and_custom_permissions->permission::grant db_exec_plsql db_exec_plsql (public) permission::grant->db_exec_plsql permission::cache_flush permission::cache_flush (public) permission::grant->permission::cache_flush Class ::xo::Authorize Class ::xo::Authorize (public) Class ::xo::Authorize->permission::grant acs::test::user::create acs::test::user::create (public) acs::test::user::create->permission::grant acs_privacy::set_user_read_private_data acs_privacy::set_user_read_private_data (public, deprecated) acs_privacy::set_user_read_private_data->permission::grant acs_user::promote_person_to_user acs_user::promote_person_to_user (public) acs_user::promote_person_to_user->permission::grant apm_mount_core_packages apm_mount_core_packages (private) apm_mount_core_packages->permission::grant

Testcases:
acs_admin_merge_MergeUserInfo, acs_subsite_expose_bug_775, ad_proc_permission_grant_and_revoke, ad_proc_permission_permission_p, test_inheritance_and_custom_permissions
Source code:
    db_exec_plsql grant_permission {}
    permission::cache_flush -party_id $party_id -object_id $object_id -privilege $privilege
Generic XQL file:
packages/acs-tcl/tcl/acs-permissions-procs.xql

PostgreSQL XQL file:
<fullquery name="permission::grant.grant_permission">
    <querytext>
                select acs_permission__grant_permission(
                    :object_id,
                    :party_id,
                    :privilege
                );
        </querytext>
</fullquery>
packages/acs-tcl/tcl/acs-permissions-procs-postgresql.xql

Oracle XQL file:
<fullquery name="permission::grant.grant_permission">
    <querytext>
            declare
            begin
                acs_permission.grant_permission(
                    object_id => :object_id,
                    grantee_id => :party_id,
                    privilege => :privilege
                );
            end;
        </querytext>
</fullquery>
packages/acs-tcl/tcl/acs-permissions-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: