Fix controller access denied page design

This commit is contained in:
Abhishek Kumar
2022-05-18 11:58:19 +05:30
parent 0954235b04
commit 16fb5e069a
2 changed files with 17 additions and 0 deletions

View File

@@ -188,6 +188,9 @@ abstract class ControllerCore
if ($this->viewAccess()) {
$this->initContent();
} else {
if (method_exists($this, 'setAccessDeniedPageVars')) {
$this->setAccessDeniedPageVars();
}
$this->errors[] = Tools::displayError('Access denied.');
}