fix: [releaseUpdateLock] Fixed error message to reflect the reality

pull/5002/head
mokaddem 2019-11-08 11:51:53 +01:00
parent a2ab30fcab
commit e32dcf3c69
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -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();