Commit 7ff7ae65 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

fix(15346) : add verification on delete mode

parent b2d505a2
Pipeline #10325 failed with stages
in 1 minute and 1 second
......@@ -183,7 +183,7 @@ class cluster
try {
$clusterRepository->repository = $this->repositoryController->openRepository($clusterRepository->repositoryId);
} catch (\Exception $e) {
if ($mode == Cluster::MODE_WRITE) {
if ($mode != Cluster::MODE_READ) {
throw \laabs::newException("digitalResource/clusterException", "Repository '%s' must be accessible", 404, $e, [$clusterRepository->repositoryId]);
} else {
$clusterRepository->repository = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment