aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Westminster.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Westminster.pm b/perllib/FixMyStreet/Cobrand/Westminster.pm
index a89bc4851..f5e52ae6d 100644
--- a/perllib/FixMyStreet/Cobrand/Westminster.pm
+++ b/perllib/FixMyStreet/Cobrand/Westminster.pm
@@ -32,7 +32,16 @@ sub enter_postcode_text {
sub send_questionnaires { 0 }
-sub updates_disallowed { 1 }
+sub updates_disallowed {
+ my $self = shift;
+ my $c = $self->{c};
+
+ # Only WCC staff and superusers can leave updates
+ my $staff = $c->user_exists && $c->user->from_body && $c->user->from_body->name eq $self->council_name;
+ my $superuser = $c->user_exists && $c->user->is_superuser;
+
+ return ( $staff || $superuser ) ? 0 : 1;
+ }
sub social_auth_enabled {
my $self = shift;