aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Offline.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-11-23 17:24:58 +0000
committerDave Arter <davea@mysociety.org>2017-11-24 13:56:46 +0000
commit794ab08b0a889011228a2e6041c336f87f8285f9 (patch)
tree6c7206e04c51a5363384c41d6794545b2d57ca77 /perllib/FixMyStreet/App/Controller/Offline.pm
parent1986cacd1518b876d11df31cde60b896d91a80cb (diff)
Reinstate appcache_enabled staging flag
This can optionally disable appcache for superusers which can be handy in development.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Offline.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Offline.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Offline.pm b/perllib/FixMyStreet/App/Controller/Offline.pm
index 7b17bb569..d50d0d03f 100644
--- a/perllib/FixMyStreet/App/Controller/Offline.pm
+++ b/perllib/FixMyStreet/App/Controller/Offline.pm
@@ -18,7 +18,8 @@ Offline pages Catalyst Controller.
sub have_appcache : Private {
my ($self, $c) = @_;
- return $c->user_exists && $c->user->has_body_permission_to('planned_reports');
+ return $c->user_exists && $c->user->has_body_permission_to('planned_reports')
+ && !($c->user->is_superuser && FixMyStreet->staging_flag('enable_appcache', 0));
}
sub manifest : Path("/offline/appcache.manifest") {