wp_check_authorization

one of the documented procedures in this installation of the ACS
Usage:
wp_check_authorization   db   presentation_id   user_id   { priv "read" }
What it does:
Verifies that the user can perform $priv roles on the presentation, returning an error and bailing if not. If authorized, returns the level at which the user is actually authorized.
Defined in: /web/philip/tcl/wp-defs.tcl

Source code:


    set auth [wp_access $db $presentation_id $user_id $priv]
    if { $auth == "" } {
	ad_return_error "Authorization Failed" "You do not have the proper authorization to access this feature."
	ad_script_abort
    }
    return $auth


philg@mit.edu