Marmot Manual

MU_Authorize::check_authorization

(Version unspecified)

MU_Authorize::check_authorization — Check an AuthMan authorization

Description

rettype check_authorizationstring application, (string module, (string key)

MU_Authorize can also test AuthMan authorizations by using check_authorization() and giving it an (application, module, key) tuple as is configured in the AuthMan administration utility.

Note: AuthMan is currently Miami-specific and not part of the full Marmot distribution. It may be made available in the future.

Parameters

  • application - the AuthMan name of the current application

  • module - the AuthMan module to check

  • key - the AuthMan key to check

Return value

This method returns TRUE if the comparison was successful, FALSE if the comparison failed, and -1 on error.

Examples

Example 61. 

<?php ?>

See also

check_attribute(), check_group()