diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-03-09 12:58:42 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-03-09 12:58:44 +0000 |
commit | 61c8c7610e63d93b8018afa4ccb22d35e6c26182 (patch) | |
tree | a65b96628835479908f4200c4238cad2be0d59ea /perllib/FixMyStreet | |
parent | 07bcfacab98ce6167b54ff6f611e0ad75486f5e8 (diff) |
[UK Councils] Superusers cannot be edited by staff
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/UKCouncils.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm index 6709ef565..64c22d543 100644 --- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm +++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm @@ -130,7 +130,11 @@ sub users_restriction { push @$or_query, email => @domains; } - return $rs->search($or_query); + my $query = { + is_superuser => 0, + -or => $or_query + }; + return $rs->search($query); } sub base_url { |