aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/Westminster.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Westminster.pm b/perllib/FixMyStreet/Cobrand/Westminster.pm
index ba65f75a6..989ad0399 100644
--- a/perllib/FixMyStreet/Cobrand/Westminster.pm
+++ b/perllib/FixMyStreet/Cobrand/Westminster.pm
@@ -58,4 +58,12 @@ sub oidc_user_extra {
};
}
+sub open311_config {
+ my ($self, $row, $h, $params) = @_;
+
+ my $id = $row->user->get_extra_metadata('westminster_account_id');
+ # Westminster require 0 as the account ID if there's no MyWestminster ID.
+ $h->{account_id} = $id || '0';
+}
+
1;