ad_scope_administrator_p

EveAndersson.com : API Browser : ad_scope_administrator_p

ad_scope_administrator_p

ad_scope_administrator_p visitor_id
Defined in tcl/ad-scope.tcl

if scope is not set in the topmost environment then public scope is assumed. if scope=group, it assumes that group_id is set in the topmost environment. if scope=user it assumes that user_id is set in topmost environment (this is user_id of the user who has permission to this page). this procedure will check whether the visitor has the administration rights over the page. if scope=public only site-wide administrator has the right to see the page. if scope=group only administrators of the groups specifed by the group_id are allowed to access the page. if scope=user, only user specified by user_id is allowed to view the page. procedure will return 1 if visitor with user_id equal to visitor_id has right to see the page, otherwide procedure will return 0.

Parameters:
visitor_id
[ show source ]

Show another procedure:

eve@eveandersson.com