summaryrefslogtreecommitdiff
path: root/app/Controller/User.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-01 17:36:21 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-01 17:36:21 -0400
commit109a2a2e25e0e170d3df3860d054f82f70e78c4d (patch)
tree5aa324a06ba285ec7643589620e41411bf2d49eb /app/Controller/User.php
parent3f084916e3befbaadf8dc86c8329a408dfcdf351 (diff)
Change dashboard
Diffstat (limited to 'app/Controller/User.php')
-rw-r--r--app/Controller/User.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/app/Controller/User.php b/app/Controller/User.php
index 6628bcb6..119041e5 100644
--- a/app/Controller/User.php
+++ b/app/Controller/User.php
@@ -32,27 +32,6 @@ class User extends Base
}
/**
- * Common method to get the user
- *
- * @access protected
- * @return array
- */
- protected function getUser()
- {
- $user = $this->user->getById($this->request->getIntegerParam('user_id'));
-
- if (empty($user)) {
- $this->notfound();
- }
-
- if (! $this->userSession->isAdmin() && $this->userSession->getId() != $user['id']) {
- $this->forbidden();
- }
-
- return $user;
- }
-
- /**
* List all users
*
* @access public
@@ -139,20 +118,6 @@ class User extends Base
}
/**
- * Display user calendar
- *
- * @access public
- */
- public function calendar()
- {
- $user = $this->getUser();
-
- $this->response->html($this->layout('user/calendar', array(
- 'user' => $user,
- )));
- }
-
- /**
* Display timesheet
*
* @access public