aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2025-05-21 19:13:07 +0200
committerAndreas Gohr <gohr@cosmocode.de>2025-05-21 19:13:07 +0200
commit396ae2b1e4ac18cd8a3de8ba055f983a807687dc (patch)
treec424b243f1843bf1969e5bc650acdd29dc47072e
parentf7f57de8479f2faaf7cd989cbe605004194be3a9 (diff)
downloaddokuwiki-396ae2b1e4ac18cd8a3de8ba055f983a807687dc.tar.gz
dokuwiki-396ae2b1e4ac18cd8a3de8ba055f983a807687dc.zip
do not check bundled plugins for write permissions
fixes #4441 replaces #4442
-rw-r--r--lib/plugins/extension/Installer.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/plugins/extension/Installer.php b/lib/plugins/extension/Installer.php
index e08f1da52..5bb429b01 100644
--- a/lib/plugins/extension/Installer.php
+++ b/lib/plugins/extension/Installer.php
@@ -406,6 +406,11 @@ class Installer
{
$target = $extension->getInstallDir();
+ // bundled plugins do not need to be writable
+ if ($extension->isBundled()) {
+ return;
+ }
+
// updates
if (file_exists($target)) {
if (!is_writable($target)) throw new Exception('noperms');