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

Commit 06bd54b

Browse files
committed
Call isWriteable() on the root node as well, to send correct ajxp_readonly value.
1 parent 22a90af commit 06bd54b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/plugins/access.fs/class.fsAccessDriver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,10 +1216,10 @@ public function loadNodeInfo(&$ajxpNode, $parentNode = false, $details = false)
12161216
$crtPath = $ajxpNode->getPath();
12171217
$vRoots = $this->repository->listVirtualRoots();
12181218
$metaData["ajxp_readonly"] = "false";
1219+
if (!@$this->isWriteable($ajxpNode->getUrl())) {
1220+
$metaData["ajxp_readonly"] = "true";
1221+
}
12191222
if (!empty($crtPath)) {
1220-
if (!@$this->isWriteable($ajxpNode->getUrl())) {
1221-
$metaData["ajxp_readonly"] = "true";
1222-
}
12231223
if (isSet($vRoots[ltrim($crtPath, "/")])) {
12241224
$metaData["ajxp_readonly"] = $vRoots[ltrim($crtPath, "/")]["right"] == "r" ? "true" : "false";
12251225
}

0 commit comments

Comments
 (0)