Fixed issue admin.super or admin.users users changing the account when saving another user [#713]

This commit is contained in:
Flavio Copes
2017-01-31 11:11:27 +01:00
parent 3d9c99c824
commit f7401543df
2 changed files with 10 additions and 1 deletions

View File

@@ -556,7 +556,10 @@ class AdminController extends AdminBaseController
$config->reload();
if ($this->view === 'user') {
$this->grav['user']->merge(User::load($this->admin->route)->toArray());
if ($obj->username == $this->grav['user']->username) {
//Editing current user. Reload user object
$this->grav['user']->merge(User::load($this->admin->route)->toArray());
}
}
}