aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Offline.pm
diff options
context:
space:
mode:
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") {