Commit 53b96e65 authored by Charlotte Bataille's avatar Charlotte Bataille
Browse files

feat/18594 : fix default value for ownerIsSuperUser

parent e8207252
Pipeline #16546 failed with stages
in 29 seconds
......@@ -48,7 +48,7 @@ displayableFormat = "['application/pdf', 'image/jpeg', 'image/png', 'text/plain'
[recordsManagement]
; Allow the owner org to have access to other org units archives
ownerIsSuperUser = true
ownerIsSuperUser = false
; Profile directory for rng profile
profilesDirectory = "%laabsDirectory%/data/maarchRM/profiles"
......
......@@ -921,7 +921,7 @@ trait archiveAccessTrait
$this->userPositionController->readDescandantService((string) $currentService->orgId)
);
$ownerIsSuperUser = false;
$ownerIsSuperUser = true;
if (isset(\laabs::configuration("recordsManagement")['ownerIsSuperUser'])) {
$ownerIsSuperUser = (bool) \laabs::configuration("recordsManagement")['ownerIsSuperUser'];
}
......@@ -1134,7 +1134,7 @@ trait archiveAccessTrait
$this->userPositionController->readDescandantService((string) $currentService->orgId)
);
$ownerIsSuperUser = false;
$ownerIsSuperUser = true;
if (isset(\laabs::configuration("recordsManagement")['ownerIsSuperUser'])) {
$ownerIsSuperUser = (bool) \laabs::configuration("recordsManagement")['ownerIsSuperUser'];
}
......@@ -1379,7 +1379,7 @@ trait archiveAccessTrait
$userServices[] = $currentUserService->registrationNumber;
// OWNER access
$ownerIsSuperUser = false;
$ownerIsSuperUser = true;
if (isset(\laabs::configuration("recordsManagement")['ownerIsSuperUser'])) {
$ownerIsSuperUser = (bool) \laabs::configuration("recordsManagement")['ownerIsSuperUser'];
......
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