aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-06-06 11:37:06 +0000
committerHakim Cassimally <hakim@mysociety.org>2014-08-14 09:44:36 +0000
commit8d97bff0663729b2abea6f7a38a547515cb23f9a (patch)
tree299cb680904e93ebdc5a6a81e6738ec3270c6eb9 /perllib/FixMyStreet/App/Controller/Report.pm
parent963bfbc11643e0499162e33161ab539c6dcb611f (diff)
Move bromley from report hiding to moderation
The feature to hide reports is still enabled, as it is used by other `users_can_hide` bodies. As we want to roll out moderation to Bromley, in this commit we hide the functionality *only* for Bromley. Of course if we migrate those other users to this moderation method, then we will need to make equivalent change to general template, and remove the functionality from Report.pm.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 13a347a90..c20a6754a 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -211,6 +211,19 @@ sub generate_map_tags : Private {
return 1;
}
+=head2 delete
+
+Endpoint for the council report hiding feature enabled for
+C<users_can_hide> bodies, and Bromley. The latter is migrating
+to moderation, however we'd need to inform all the other
+users too about this change, at which point we can delete:
+
+ - this method
+ - the call to it in templates/web/fixmystreet/report/display.html
+ - the users_can_hide cobrand method, in favour of user->has_permission_to
+
+=cut
+
sub delete :Local :Args(1) {
my ( $self, $c, $id ) = @_;