CC-4785: Zend errors on page not found
-partially fixed
This commit is contained in:
parent
8a3de42a1e
commit
178abcfada
1 changed files with 4 additions and 1 deletions
|
@ -152,7 +152,10 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
|
||||||
$resourceName .= $controller;
|
$resourceName .= $controller;
|
||||||
|
|
||||||
/** Check if the controller/action can be accessed by the current user */
|
/** Check if the controller/action can be accessed by the current user */
|
||||||
if (!$this->getAcl()->isAllowed($this->_roleName, $resourceName, $request->getActionName())) {
|
if (!$this->getAcl()->has($resourceName)
|
||||||
|
|| !$this->getAcl()->isAllowed($this->_roleName,
|
||||||
|
$resourceName,
|
||||||
|
$request->getActionName())) {
|
||||||
/** Redirect to access denied page */
|
/** Redirect to access denied page */
|
||||||
$this->denyAccess();
|
$this->denyAccess();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue