* [ADD] Permissions for users and groups on accounts could now be set either for viewing or editing.

* [MOD] Improved account ACL performance
* [MOD] Improved tags and permissions saving behavior
This commit is contained in:
nuxsmin
2018-04-02 00:02:24 +02:00
parent be82723788
commit b9bc1c09e9
27 changed files with 556 additions and 302 deletions

View File

@@ -140,7 +140,9 @@ class UserController extends ControllerBase implements CrudControllerInterface
$this->view->assign('sk', $this->session->generateSecurityKey());
$this->view->assign('nextAction', Acl::getActionRoute(ActionsInterface::ACCESS_MANAGE));
if ($this->view->isView === true || $user->getLogin() === 'demo') {
if ($this->view->isView === true
|| ($this->configData->isDemoEnabled() && $user->getLogin() === 'demo')
) {
$this->view->assign('disabled', 'disabled');
$this->view->assign('readonly', 'readonly');