mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-10-31 18:35:57 +01:00 
			
		
		
		
	Fixed issue admin.super or admin.users users changing the account when saving another user [#713]
				
					
				
			This commit is contained in:
		| @@ -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()); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user