aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin/Users.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-17 20:45:33 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-28 17:19:27 +0100
commitf763cb953402bb71254e5f5db44293e64704d528 (patch)
tree4fe2acb3ee6be4972ae48cc20a49329ba3ddb1dc /perllib/FixMyStreet/App/Controller/Admin/Users.pm
parent474bc7c3b0c87c7eebc2171f3bd1bd18370da4cd (diff)
Fix uses of != instead of not_in.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin/Users.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin/Users.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Users.pm b/perllib/FixMyStreet/App/Controller/Admin/Users.pm
index 657bfafa9..1edddd960 100644
--- a/perllib/FixMyStreet/App/Controller/Admin/Users.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin/Users.pm
@@ -282,7 +282,7 @@ sub edit : Path : Args(1) {
my @user_permissions = grep { $c->get_param("permissions[$_]") ? 1 : undef } @all_permissions;
$user->admin_user_body_permissions->search({
body_id => $user->from_body->id,
- permission_type => { '!=' => \@user_permissions },
+ permission_type => { -not_in => \@user_permissions },
})->delete;
foreach my $permission_type (@user_permissions) {
$user->user_body_permissions->find_or_create({
@@ -302,7 +302,7 @@ sub edit : Path : Args(1) {
my @trusted_bodies = $c->get_param_list('trusted_bodies');
if ( $c->user->is_superuser ) {
$user->user_body_permissions->search({
- body_id => { '!=' => \@trusted_bodies },
+ body_id => { -not_in => \@trusted_bodies },
permission_type => 'trusted',
})->delete;
foreach my $body_id (@trusted_bodies) {