aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index e830b10b2..c69156c64 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -310,4 +310,10 @@ sub suppress_reporter_alerts {
return 0;
}
+sub must_have_2fa {
+ my ($self, $user) = @_;
+ return 1 if $user->is_superuser;
+ return 0;
+}
+
1;