mirror of https://github.com/MISP/MISP
fix: [internal] AppController minor fix
- fix bug of invalid forcing of JSON export type in certain conditionspull/3626/head
parent
141c7d451f
commit
6850d7dff3
|
@ -559,6 +559,7 @@ class AppController extends Controller
|
|||
);
|
||||
return false;
|
||||
}
|
||||
$key = 'json';
|
||||
} else {
|
||||
if (!$this->Auth->user('id')) {
|
||||
$exception = $this->RestResponse->throwException(
|
||||
|
@ -569,7 +570,6 @@ class AppController extends Controller
|
|||
}
|
||||
$user = $this->Auth->user();
|
||||
}
|
||||
$key = 'json';
|
||||
return $user;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue