mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [FIX] Fixed wrong Acl behavior
* [FIX] Minor bugfixes * [MOD] Updated db schema
This commit is contained in:
@@ -145,7 +145,7 @@ class AuthTokenController extends ControllerBase implements CrudControllerInterf
|
||||
$this->view->assign('readonly');
|
||||
}
|
||||
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::AUTHTOKEN, $authTokenId));
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::AUTHTOKEN, $authTokenId, $this->session));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -139,7 +139,7 @@ class CategoryController extends ControllerBase implements CrudControllerInterfa
|
||||
$this->view->assign('readonly');
|
||||
}
|
||||
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::CATEGORY, $categoryId));
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::CATEGORY, $categoryId, $this->session));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -140,7 +140,7 @@ class ClientController extends ControllerBase implements CrudControllerInterface
|
||||
$this->view->assign('readonly');
|
||||
}
|
||||
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::CLIENT, $clientId));
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::CLIENT, $clientId, $this->session));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -81,7 +81,7 @@ class ConfigGeneralController extends SimpleControllerBase
|
||||
$configData->setLogEnabled($logEnabled);
|
||||
$configData->setLogEvents(Request::analyzeArray('log_events', function ($items) {
|
||||
return ConfigUtil::eventsAdapter($items);
|
||||
}));
|
||||
}, []));
|
||||
|
||||
$configData->setSyslogEnabled($syslogEnabled);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ class UserController extends ControllerBase implements CrudControllerInterface
|
||||
$this->view->assign('readonly');
|
||||
}
|
||||
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::USER, $userId));
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::USER, $userId, $this->session));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -148,7 +148,7 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
|
||||
$this->view->assign('readonly');
|
||||
}
|
||||
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::GROUP, $userGroupId));
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::GROUP, $userGroupId, $this->session));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -143,7 +143,7 @@ class UserProfileController extends ControllerBase implements CrudControllerInte
|
||||
$this->view->assign('readonly');
|
||||
}
|
||||
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::PROFILE, $profileId));
|
||||
$this->view->assign('customFields', $this->getCustomFieldsForItem(ActionsInterface::PROFILE, $profileId, $this->session));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user