summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-04-29 12:13:00 +0200
committerYorhel <git@yorhel.nl>2011-04-29 12:13:32 +0200
commitee977448037feeb53736f35809722dd16d3d3d91 (patch)
tree05dee68991b295b36ddfe49a5499d2199e17bee0
parentcc1c73c3bcb06a3e21774c8c9349f9471d99d4aa (diff)
Bugfix: Allow unhiding of posts by mods
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/Handler/Discussions.pm2
2 files changed, 2 insertions, 1 deletions
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;