====== setAccessControl ====== {#JAPI Joomla.Framework Application JController::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 [[jcontroller-authorize|authorize()]] method. ===== Syntax ===== void setAccessControl ( **$section**, **$value** ) | **$section** | string | is a string containing the ACO section (eg, the component). | | **$value** | string | is a string containing the ACO section value (if using a constant value). This parameter is optional and if omitted defaults to null. | ===== Examples ===== If the following code was inserted into the constructor of the derived controller class: $this->setAccessControl( 'com_weblinks' ); then echo ($controller->authorize( 'manage' ) ? 'True' : 'False'); might produce True if the current user has manage rights on the com_weblinks controller. ---- ~~DISCUSSION~~