diff options
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/UKCouncils.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/UKCouncils.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm index c652e44c2..3a831b431 100644 --- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm +++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm @@ -241,6 +241,8 @@ sub admin_allow_user { my ( $self, $user ) = @_; return 1 if $user->is_superuser; return undef unless defined $user->from_body; + # Make sure TfL staff can't access other London cobrand admins + return undef if $user->from_body->name eq 'TfL'; return $user->from_body->areas->{$self->council_area_id}; } |