mirror of https://github.com/MISP/MISP
fix: [releaseUpdateLock] Fixed error message to reflect the reality
parent
a2ab30fcab
commit
e32dcf3c69
|
@ -2179,7 +2179,7 @@ misp.direct_call(relative_path, body)
|
|||
throw new MethodNotAllowedException(__('This endpoint expects POST requests.'));
|
||||
}
|
||||
if (!$this->_isSiteAdmin()) {
|
||||
throw new MethodNotAllowedException(__('Site admin accounts cannot be used to release the update lock.'));
|
||||
throw new MethodNotAllowedException(__('Only site admin accounts can release the update lock.'));
|
||||
}
|
||||
$this->Server->changeLockState(false);
|
||||
$this->Server->resetUpdateFailNumber();
|
||||
|
|
Loading…
Reference in New Issue