permission::permission_p_not_cached (private)

 permission::permission_p_not_cached [ -no_cache ] \
    [ -party_id party_id ] -object_id object_id -privilege privilege

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

does party X have privilege Y on object Z This function accepts "-no_cache" just to match the permission_p signature since we alias it to permission::permission_p when caching is disabled.

Switches:
-no_cache (optional, boolean)
-party_id (optional)
-object_id (required)
-privilege (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 permission::cache_eval permission::cache_eval (private) permission::permission_p_not_cached permission::permission_p_not_cached permission::cache_eval->permission::permission_p_not_cached permission::permission_p permission::permission_p (public) permission::permission_p->permission::permission_p_not_cached ad_conn ad_conn (public) permission::permission_p_not_cached->ad_conn db_string db_string (public) permission::permission_p_not_cached->db_string

Testcases:
No testcase defined.
Source code:
    if { $party_id eq "" } {
        set party_id [ad_conn user_id]
    }

    # We have a per-request cache here
    return [acs::per_request_cache eval -key acs-tcl.permission_p__cache-$party_id,$object_id,$privilege {
        db_string select_permission_p {
            select acs_permission.permission_p(:object_id, :party_id, :privilege) from dual
        }
    }]
Generic XQL file:
packages/acs-tcl/tcl/acs-permissions-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/acs-permissions-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/acs-permissions-procs-oracle.xql

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