diff --git a/app/Controller/UsersController.php b/app/Controller/UsersController.php index 922ce3ded9..427dc27e7a 100644 --- a/app/Controller/UsersController.php +++ b/app/Controller/UsersController.php @@ -367,7 +367,7 @@ function ($container_id, $permission_level) { $this->request->data = $this->User->find('first', $options); $containers = $this->Tree->easyPath($this->MY_RIGHTS, OBJECT_USER, [], $this->hasRootPrivileges); $selectedContainers = ($this->request->data('Container')) ? Hash::extract($this->request->data['Container'], '{n}.id') : Hash::extract($permissionsUser['ContainerUserMembership'], '{n}.container_id'); - $this->set(compact(['containers', 'selectedContainers'])); + $this->set(compact(['containers', 'selectedContainers', 'permissionsUser'])); $this->request->data['User']['password'] = ''; $type = 'local'; diff --git a/app/View/Users/edit.ctp b/app/View/Users/edit.ctp index 5a070933a1..72fd83d75c 100644 --- a/app/View/Users/edit.ctp +++ b/app/View/Users/edit.ctp @@ -42,7 +42,7 @@