From 6c772de184505ae339a970631c8e98f3e3b6e5f0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 27 Jun 2015 15:14:04 -0400 Subject: Remove column default_project_id for users because it's useless now --- app/Model/UserSession.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'app/Model/UserSession.php') diff --git a/app/Model/UserSession.php b/app/Model/UserSession.php index 6703a1bc..f1f2ffee 100644 --- a/app/Model/UserSession.php +++ b/app/Model/UserSession.php @@ -33,7 +33,6 @@ class UserSession extends Base } $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']; $user['twofactor_activated'] = (bool) $user['twofactor_activated']; @@ -95,37 +94,4 @@ class UserSession extends Base { return ! empty($this->session['user']); } - - /** - * Get the last seen project from the session - * - * @access public - * @return integer - */ - public function getLastSeenProjectId() - { - return empty($this->session['last_show_project_id']) ? 0 : $this->session['last_show_project_id']; - } - - /** - * Get the default project from the session - * - * @access public - * @return integer - */ - public function getFavoriteProjectId() - { - return isset($this->session['user']['default_project_id']) ? $this->session['user']['default_project_id'] : 0; - } - - /** - * Set the last seen project from the session - * - * @access public - * @param integer $project_id Project id - */ - public function storeLastSeenProjectId($project_id) - { - $this->session['last_show_project_id'] = (int) $project_id; - } } -- cgit v1.2.3