mirror of https://github.com/MISP/MISP
peformance
parent
0d66ef931a
commit
d4d24a3aea
|
@ -183,13 +183,9 @@ class AppController extends Controller {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function _refreshAuth() {
|
protected function _refreshAuth() {
|
||||||
if (isset($this->User)) {
|
$this->loadModel('User');
|
||||||
$user = $this->User->read(false, $this->Auth->user('id'));
|
$this->User->recursive = -1;
|
||||||
} else {
|
$user = $this->User->findById($this->Auth->user('id'));
|
||||||
$this->loadModel('User');
|
|
||||||
$this->User->recursive = -1;
|
|
||||||
$user = $this->User->findById($this->Auth->user('id'));
|
|
||||||
}
|
|
||||||
$this->Auth->login($user['User']);
|
$this->Auth->login($user['User']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue