ad_scope_authorization_status

EveAndersson.com : API Browser : ad_scope_authorization_status

ad_scope_authorization_status

ad_scope_authorization_status scope public_permissions \
    group_permissions user_permissions [ id ]
Defined in tcl/ad-scope.tcl

this procedure will check whether the visitor has the right to view the page. if authorization fails, procedure returns not_authorized; if authorization suceeds, procedure will return authorized, and if user needs to be registered in order to view the page, procedure will return reg_required. public_permission gives permissions used for public scope: all, registered, admin (site-wide-administrator) and none (scope=public does not apply for this page, so nobody can see the page). group_permissions gives permission used for scope group: all (all users), registered (registered users only), group_member (group members only), group_admin (group administrators), admin (site wide administrators) and none (scope=group does not apply for this page, so nobody in the group can see the page). user_permissions gives permission used for scope user: all (all users), registered (registered users only) and user (only the user with user_id specified by the variable user_id_name has full privileges), and none (scope=user does not apply for this page, so page cannot be accessed for scope user). if scope=group, id is the group_id of the group against which, we are performing the authorization). if scope=user, id is the user_id of the user against whom, we are performing the authorization. if scope=public, id is irrelevant.

Parameters:
scope
public_permissions
group_permissions
user_permissions
id (defaults to "0")
[ show source ]

Show another procedure:

eve@eveandersson.com