Authorize.pm


NAME

Communiware::DE::Authorize - Dynamic element Authorize


SYNOPSIS

   <:Authorize expression:>


DESCRIPTION

Occurence of this dynamic element in the template causes Communiware to verify authentity of current user. I.E. if user have already supplied basic auth credentials, they are verified, otherwise HTTP protocol status 401 AUTH required is returned, causing user browser to repeat request with correct credentials (possible asking user for them).

When user have verified, i.e. we are sure that user is really person with given AUTHOR_ID, logical expression is checked. If it evaluates to true, page is shown. Otherwise, status Forbidden is returned.

If user status is SUPERUSER, user is allowed to view page anyway.

When used in element templates which are used in scripts, it is ignored.

16 октябрь 2007 13:44