summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-08-18 08:06:03 +0200
committerYorhel <git@yorhel.nl>2020-08-18 08:06:03 +0200
commite780ce10770eb1f91a55b5f954560b8824d6f474 (patch)
tree23ce0ec37f066f49e21b265be10b2ce53f0d04a9
parente4d0915b139c47edc68adc1e45160a987e6a121f (diff)
Reviews::Page: Fix 500 in checking comment permissions
-rw-r--r--lib/VNWeb/Reviews/Page.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Reviews/Page.pm b/lib/VNWeb/Reviews/Page.pm
index fdd2da79..e9716c10 100644
--- a/lib/VNWeb/Reviews/Page.pm
+++ b/lib/VNWeb/Reviews/Page.pm
@@ -138,7 +138,7 @@ TUWF::get qr{/$RE{wid}(?:(?<sep>[\./])$RE{num})?}, sub {
} else {
div_ id => 'threadstart', '';
}
- elm_ 'Reviews.Comment' => $COMMENT, { id => $w->{id}, msg => '' } if $w->{count} <= $page*25 && can_edit t => $w;
+ elm_ 'Reviews.Comment' => $COMMENT, { id => $w->{id}, msg => '' } if $w->{count} <= $page*25 && can_edit t => {%$w,locked=>0};
};
};