Skip to content

Commit

Permalink
fix removable state, disallow only on deploy (#242)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <[email protected]>
  • Loading branch information
andrey18106 authored Feb 21, 2024
1 parent daf2315 commit d140563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Controller/ExAppsPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ public function listApps(): JSONResponse {
}))[0]['releases'][0]['version'];
}

$appData['canUnInstall'] = !$appData['active'] && $appData['removable'] && !isset($appData['status']['type'])
$appData['canUnInstall'] = !$appData['active'] && $appData['removable']
&& (isset($appData['status']['action']) && $appData['status']['action'] !== 'deploy')
|| (isset($appData['status']['action']) && $appData['status']['action'] === 'init')
|| !empty($appData['status']['error']);

Expand Down

0 comments on commit d140563

Please sign in to comment.