Skip to content

Commit

Permalink
Add reporter/staff/notopen311-open option for updates_allowed
Browse files Browse the repository at this point in the history
This combines the notopen311-open and reporter/staff-open options into
one.
  • Loading branch information
chrismytton authored and MorayMySoc committed Sep 13, 2024
1 parent 7333cf9 commit 1f2e4eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perllib/FixMyStreet/Cobrand/UK.pm
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ sub _updates_disallowed_check {
return $cfg unless !$body_comment_user && $open;
} elsif ($cfg eq 'reporter-not-open/staff-open') {
return $cfg unless ( $reporter && !$open ) || ( $staff && $open );
} elsif ($cfg eq 'reporter/staff/notopen311-open') {
return $cfg unless ($reporter || $staff) && !$body_comment_user && $open;
}
return '';
}
Expand Down

0 comments on commit 1f2e4eb

Please sign in to comment.