From 50a0f564c636982a1d841795dadf3179b02eb5b8 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Mon, 9 Sep 2019 19:34:38 +0200 Subject: [PATCH] fix: [audit] Correct title in audit log when admin edit user --- app/Controller/UsersController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Controller/UsersController.php b/app/Controller/UsersController.php index 151374726..f7bbd3a0d 100644 --- a/app/Controller/UsersController.php +++ b/app/Controller/UsersController.php @@ -871,14 +871,10 @@ class UsersController extends AppController $fieldsResultStr = substr($fieldsResultStr, 2); $user = $this->User->find('first', array( 'recursive' => -1, - 'conditions' => array('User.id' => $this->id) + 'conditions' => array('User.id' => $this->User->id) )); $this->User->extralog($this->Auth->user(), "edit", "user", $fieldsResultStr, $user); if ($this->_isRest()) { - $user = $this->User->find('first', array( - 'conditions' => array('User.id' => $this->User->id), - 'recursive' => -1 - )); $user['User']['password'] = '******'; return $this->RestResponse->viewData($user, $this->response->type()); } else {