diff options
Diffstat (limited to 'app/Model/User.php')
-rw-r--r-- | app/Model/User.php | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/app/Model/User.php b/app/Model/User.php index 29def6d4..1bcc82b5 100644 --- a/app/Model/User.php +++ b/app/Model/User.php @@ -254,7 +254,7 @@ class User extends Base // If the user is connected refresh his session if (Session::isOpen() && $this->userSession->getId() == $values['id']) { - $this->updateSession(); + $this->userSession->refresh(); } return $result; @@ -295,30 +295,6 @@ class User extends Base } /** - * Update user session information - * - * @access public - * @param array $user User data - */ - public function updateSession(array $user = array()) - { - if (empty($user)) { - $user = $this->getById($this->userSession->getId()); - } - - if (isset($user['password'])) { - unset($user['password']); - } - - $user['id'] = (int) $user['id']; - $user['default_project_id'] = (int) $user['default_project_id']; - $user['is_admin'] = (bool) $user['is_admin']; - $user['is_ldap_user'] = (bool) $user['is_ldap_user']; - - $this->session['user'] = $user; - } - - /** * Common validation rules * * @access private |