* [FIX] Fixed wrong Acl behavior

* [FIX] Minor bugfixes
* [MOD] Updated db schema
This commit is contained in:
nuxsmin
2018-03-19 20:41:38 +01:00
parent b7504f9f72
commit 85de6fd507
11 changed files with 122 additions and 146 deletions

View File

@@ -132,7 +132,7 @@ abstract class SimpleControllerBase
*/
protected function checkAccess($action)
{
if (!$this->session->getUserData()->getIsAdminApp() || !$this->acl->checkUserAccess($action)) {
if (!$this->session->getUserData()->getIsAdminApp() && !$this->acl->checkUserAccess($action)) {
throw new UnauthorizedPageException(UnauthorizedPageException::INFO);
}
}