chg: [clenaup] removed old dashboard

pull/5635/head
iglocska 2020-03-02 23:05:08 +01:00
parent 556efcbf5b
commit 612897d26f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 0 additions and 13 deletions

View File

@ -2168,19 +2168,6 @@ class UsersController extends AppController
return new CakeResponse(array('body' => $key));
}
public function dashboard()
{
$events = array();
// the last login in the session is not updated after the login - only in the db, so let's fetch it.
$lastLogin = $this->Auth->user('last_login');
$this->loadModel('Event');
$events['changed'] = count($this->Event->fetchEventIds($this->Auth->user(), false, false, false, true, $lastLogin));
$events['published'] = count($this->Event->fetchEventIds($this->Auth->user(), false, false, false, true, false, $lastLogin));
$notifications = $this->{$this->modelClass}->populateNotifications($this->Auth->user());
$this->set('notifications', $notifications);
$this->set('events', $events);
}
public function checkIfLoggedIn()
{
return new CakeResponse(array('body'=> 'OK','status' => 200));