ad_require_permission

EveAndersson.com : API Browser : ad_require_permission

ad_require_permission

ad_require_permission user_id permission_type on_what_id \
    on_which_table [ return_url ]
Defined in tcl/ad-general-permissions.tcl

If the user is not logged in and the specified type of permission has not been granted to all users, then redirect for registration. If the user is logged in but does not have the specified permission type on the specified database row, then redirects to return_url if supplied, or returns a "forbidden" error page.

Parameters:
user_id
permission_type
on_what_id
on_which_table
return_url (optional)
[ show source ]

Show another procedure:

eve@eveandersson.com