summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Board.php31
-rw-r--r--app/Controller/User.php1
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),