references:joomla.framework:application:jcontroller-authorizeauthorize
Checks whether the current user is authorized to execute the specified task. This check is dependent on the access control key being specified using the JController->setAccessControl method. If the current user (obtained using JFactory::getUser() method) has the required permission to execute the specified task, true is returned. If the user does not have permission to execute the specified task, false is returned. If no access control is setup, true is returned. If an access control section value has already been specified (using the JController->setAccessControl method), then it is used instead of the value of the $task parameter. For information on how user permissions are determined, please refer to the JUser->authorize method. Syntaxboolean authorize ( $task )
See AlsoIntroduction to ACL. ExamplesExample might produce Result |


