mirror of https://github.com/MISP/MISP
chg: [clenaup] removed old dashboard
parent
556efcbf5b
commit
612897d26f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue