Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 97b5eee

Browse files
committed
Check only for temporary switch
1 parent c4b9667 commit 97b5eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/core/classes/class.ConfService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public function switchRootDirInst($rootDirIndex=-1, $temporary=false)
463463
}
464464
} else {
465465
$object = self::getRepositoryById($rootDirIndex);
466-
if($object == null || !self::repositoryIsAccessible($rootDirIndex, $object)) {
466+
if($temporary && ($object == null || !self::repositoryIsAccessible($rootDirIndex, $object))) {
467467
throw new Exception("Trying to switch to an unauthorized repository");
468468
}
469469
if ($temporary && (isSet($_SESSION['REPO_ID']) || $this->contextRepositoryId != null)) {

0 commit comments

Comments
 (0)