aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-08-29 13:52:29 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-08-29 13:52:29 +0100
commite8e104d411004b1a447197aa2a31abe9311f304e (patch)
tree3691450c3d91223911f18d519e6b17a812dc9a74 /perllib/FixMyStreet/App/Controller/Report.pm
parent527ce8a87e68759346fc3e6981c05a3ca4cfe71c (diff)
parentc90b7fdc9b46e4aa444346e2c4ba0be0838f1506 (diff)
Merge branch 'issues/collideoscope/30-user-moderation'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index e285687bc..854dbf3ea 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -140,7 +140,7 @@ sub load_problem_or_display_error : Private {
}
$c->stash->{problem} = $problem;
- if ( $c->user_exists && $c->user->has_permission_to(moderate => $problem->bodies_str_ids) ) {
+ if ( $c->user_exists && $c->user->can_moderate($problem) ) {
$c->stash->{problem_original} = $problem->find_or_new_related(
moderation_original_data => {
title => $problem->title,