diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-27 15:14:04 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-27 15:14:04 -0400 |
commit | 6c772de184505ae339a970631c8e98f3e3b6e5f0 (patch) | |
tree | 47aaafd9ef996041c7857db72ad1d274d7b44c42 /app/Controller | |
parent | e6e286be8315345bed575712b338629e4ba76bcb (diff) |
Remove column default_project_id for users because it's useless now
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Board.php | 31 | ||||
-rw-r--r-- | app/Controller/User.php | 1 |
2 files changed, 0 insertions, 32 deletions
diff --git a/app/Controller/Board.php b/app/Controller/Board.php index 2b633d82..433d3af1 100644 --- a/app/Controller/Board.php +++ b/app/Controller/Board.php @@ -45,35 +45,6 @@ class Board extends Base } /** - * Redirect the user to the default project - * - * @access public - */ - public function index() - { - $last_seen_project_id = $this->userSession->getLastSeenProjectId(); - $favorite_project_id = $this->userSession->getFavoriteProjectId(); - $project_id = $last_seen_project_id ?: $favorite_project_id; - - if (! $project_id) { - $projects = $this->projectPermission->getAllowedProjects($this->userSession->getId()); - - if (empty($projects)) { - - if ($this->userSession->isAdmin()) { - $this->redirectNoProject(); - } - - $this->forbidden(); - } - - $project_id = key($projects); - } - - $this->show($project_id); - } - - /** * Show a board for a given project * * @access public @@ -87,8 +58,6 @@ class Board extends Base $board_selector = $projects; unset($board_selector[$project['id']]); - $this->userSession->storeLastSeenProjectId($project['id']); - list($categories_listing, $categories_description) = $this->category->getBoardCategories($project['id']); $this->response->html($this->template->layout('board/index', array( diff --git a/app/Controller/User.php b/app/Controller/User.php index 4cea06b1..1a7810b0 100644 --- a/app/Controller/User.php +++ b/app/Controller/User.php @@ -360,7 +360,6 @@ class User extends Base $this->response->html($this->layout('user/edit', array( 'values' => $values, 'errors' => $errors, - 'projects' => $this->projectPermission->filterProjects($this->project->getList(), $user['id']), 'user' => $user, 'timezones' => $this->config->getTimezones(true), 'languages' => $this->config->getLanguages(true), |