mirror of https://github.com/MISP/MISP
fix: [internal] upgrade issues fixed
parent
379c6c3443
commit
2ac7ea62da
|
@ -291,7 +291,9 @@ class AppController extends Controller
|
|||
|
||||
if ($this->Auth->user()) {
|
||||
// update script
|
||||
$this->{$this->modelClass}->runUpdates();
|
||||
if ($this->_isSiteAdmin() || (Configure::read('MISP.live') && !$this->_isRest())) {
|
||||
$this->{$this->modelClass}->runUpdates();
|
||||
}
|
||||
$user = $this->Auth->user();
|
||||
if (!isset($user['force_logout']) || $user['force_logout']) {
|
||||
$this->loadModel('User');
|
||||
|
|
|
@ -146,9 +146,6 @@ class AppModel extends Model
|
|||
// this could become useful in the future
|
||||
public function updateMISP($command)
|
||||
{
|
||||
if (!$this->_isSiteAdmin() && (!Configure::read('MISP.live') || $this->_isRest())) {
|
||||
return false;
|
||||
}
|
||||
$dbUpdateSuccess = false;
|
||||
switch ($command) {
|
||||
case '2.4.20':
|
||||
|
|
Loading…
Reference in New Issue