aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/User.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-12-15 17:25:05 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-12-15 17:25:05 +0000
commit2fd63afc46db7a3a33e608bf1f4b5c0b52c18728 (patch)
treeff9ed0f73cf0979acacb9f03fffeb62623be475a /perllib/FixMyStreet/DB/Result/User.pm
parentb8aa0d6da9009dc3182093165df9b1a4c6d7d164 (diff)
parent6375eb5d31aa250f5d990d6d6420dd04cf25e3bf (diff)
Merge branch 'issues/forcouncils/108-pick-up-a-priority'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/User.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/User.pm b/perllib/FixMyStreet/DB/Result/User.pm
index 028394795..f4e5144f8 100644
--- a/perllib/FixMyStreet/DB/Result/User.pm
+++ b/perllib/FixMyStreet/DB/Result/User.pm
@@ -268,7 +268,7 @@ sub has_permission_to {
my ($self, $permission_type, $body_ids) = @_;
return 1 if $self->is_superuser;
- return 0 unless $body_ids;
+ return 0 if !$body_ids || (ref $body_ids && !@$body_ids);
my $permission = $self->user_body_permissions->find({
permission_type => $permission_type,