private function _checkAcl()
	{
		$aclConfig = Agl::app()->getConfig('core-layout/modules/' . $this->_module . '#' . $this->_view . '#action#' . $this->_action . '/acl');

		if ($aclConfig === NULL) {
			$aclConfig = Agl::app()->getConfig('core-layout/modules/' . $this->_module . '#' . $this->_view . '/acl');
		}

		if ($aclConfig === NULL) {
			$aclConfig = Agl::app()->getConfig('core-layout/modules/' . $this->_module . '/acl');
		}

    	if ($aclConfig !== NULL) {
			$auth = Agl::getAuth();
			$acl  = Agl::getSingleton(Agl::AGL_CORE_POOL . '/auth/acl');
			if (! $acl->isAllowed($auth->getRole(), $aclConfig)) {
	    		$acl->requestLogin();
	    	}
        }

        return true;
	}
private function _checkAcl()
	{
		$aclConfig = Agl::app()->getConfig('core-layout/modules/' . $this->_module . '#' . $this->_view . '#action#' . $this->_action . '/acl');

		if ($aclConfig === NULL) {
			$aclConfig = Agl::app()->getConfig('core-layout/modules/' . $this->_module . '#' . $this->_view . '/acl');
		}

		if ($aclConfig === NULL) {
			$aclConfig = Agl::app()->getConfig('core-layout/modules/' . $this->_module . '/acl');
		}

    	if ($aclConfig !== NULL) {
			$auth = Agl::getAuth();
			$acl  = Agl::getSingleton(Agl::AGL_CORE_POOL . '/auth/acl');
			if (! $acl->isAllowed($auth->getRole(), $aclConfig)) {
	    		$acl->requestLogin();
	    	}
        }

        return true;
	}
private function _checkAcl ( ) { $ aclConfig = Agl :: app ( ) -> getConfig ( 'core-layout/modules/' . $ this -> _module . '#' . $ this -> _view . '#action#' . $ this -> _action . '/acl' ) ; if ( $ aclConfig === NULL ) { $ aclConfig = Agl :: app ( ) -> getConfig ( 'core-layout/modules/' . $ this -> _module . '#' . $ this -> _view . '/acl' ) ; } if ( $ aclConfig === NULL ) { $ aclConfig = Agl :: app ( ) -> getConfig ( 'core-layout/modules/' . $ this -> _module . '/acl' ) ; } if ( $ aclConfig !== NULL ) { $ auth = Agl :: getAuth ( ) ; $ acl = Agl :: getSingleton ( Agl :: AGL_CORE_POOL . '/auth/acl' ) ; if ( ! $ acl -> isAllowed ( $ auth -> getRole ( ) , $ aclConfig ) ) { $ acl -> requestLogin ( ) ; } } return true ; }
Check if the current user can trigger the action with its Acl
configuration.

@return bool
Check if the current user can trigger the action with its Acl configuration .