From ee977448037feeb53736f35809722dd16d3d3d91 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Fri, 29 Apr 2011 12:13:00 +0200 Subject: Bugfix: Allow unhiding of posts by mods --- ChangeLog | 1 + lib/VNDB/Handler/Discussions.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9186e339..44cb643e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ - Bugfix: Hide pointless groups and commas on spoiler-hidden trait display - Bugfix: Properly format future dates on my vn list - Bugfix: Properly position the sub-tabs on VN page without tags + - Bugfix: Allow unhiding of posts by mods 2.19 - 2011-03-30 - Character database: diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index a5064ad2..7b4fb2b4 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -152,7 +152,7 @@ sub edit { return $self->htmlDenied if !$self->authCan('board') || ($tid && ($t->{locked} || $t->{hidden}) && !$self->authCan('boardmod')) || ($num && $p->{uid} != $self->authInfo->{id} && !$self->authCan('boardmod')) - || ($num && $p->{uid} == $self->authInfo->{id} && $p->{hidden}); + || ($num && $p->{hidden} && !$self->authCan('boardmod')); # check form etc... my $frm; -- cgit v1.2.3