Skip to content
Snippets Groups Projects
Verified Commit 58aea4d6 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

revert bad update

parent 6c52ab30
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ class VersionUpdateController ...@@ -102,7 +102,7 @@ class VersionUpdateController
public function update(Request $request, Response $response) public function update(Request $request, Response $response)
{ {
return $response->withStatus(400)->withJson(['errors' => 'Some files are modified. Can not update application', 'lang' => 'canNotUpdateApplication']); if (!ServiceModel::hasService(['id' => 'admin_update_control', 'userId' => $GLOBALS['userId'], 'location' => 'apps', 'type' => 'admin'])) { if (!ServiceModel::hasService(['id' => 'admin_update_control', 'userId' => $GLOBALS['userId'], 'location' => 'apps', 'type' => 'admin'])) {
return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']); return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment