references:joomla.framework:application:jcontroller-setaccesscontrolTable of Contents
setAccessControl
Maps the access control to a section in the ACO. The specified ACO section generally maps to the component. These settings are used by the authorize() method. Syntaxvoid setAccessControl ( $section, $value )
ExamplesIf the following code was inserted into the constructor of the derived controller class: Example $this->setAccessControl( 'com_weblinks' ); then Example echo ($controller->authorize( 'manage' ) ? 'True' : 'False'); might produce Result True
if the current user has manage rights on the com_weblinks controller. |


