summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-16 17:53:01 +0100
committerDylan William Hardison <dylan@hardison.net>2018-03-18 04:50:10 +0100
commit34249adbad14608948a0bf1f881e7d718d9d4da1 (patch)
tree7da012c60016b9603b42dc43665741833feaaf2a /Bugzilla/Template.pm
parent5f4ef66e740f2677df00894510c1a675060f13fa (diff)
downloadbugzilla-34249adbad14608948a0bf1f881e7d718d9d4da1.tar.gz
bugzilla-34249adbad14608948a0bf1f881e7d718d9d4da1.tar.xz
Bug 1446156 - mkdir template_cache: Permission denied
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 7a97f6da2..ae4f9bbad 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -1074,6 +1074,8 @@ our %_templates_to_precompile;
sub precompile_templates {
my ($output) = @_;
+ return unless is_webserver_group();
+
# Remove the compiled templates.
my $cache_dir = bz_locations()->{'template_cache'};
my $datadir = bz_locations()->{'datadir'};