Commit f9cfa8bc authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Merge branch 'release/2.6.8' into 'Support/2.6.X'

fix(15346) : add verification on delete mode

See merge request !608
parents 08fda3dc 7ff7ae65
Pipeline #10342 canceled with stages
......@@ -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