From 9066858701629d0f0a67e4f603e57992d25063a1 Mon Sep 17 00:00:00 2001 From: mafoo Date: Thu, 4 Feb 2016 11:14:26 +0000 Subject: [PATCH] only offer the source upgrade if it is writeable this check will prevent the source upgrade rendering if the .git folder is not writeable --- core/upgrade/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index 7106b320ed..7f14dcda17 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -142,7 +142,7 @@ echo "

"; echo "
\n"; -if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) { +if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx") && is_writeable($_SERVER["PROJECT_ROOT"]."/.git")) { echo "\n"; echo "\n"; echo "
\n";