diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,6 @@ +2.19 - ? + - Don't allow users to edit their post when it was deleted + 2.18 - 2011-02-08 - Added category field to tags (content/ero/technical) - Group tags on /v+/tagmod by their category diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index 6f6cb385..a5064ad2 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -151,7 +151,8 @@ sub edit { # are we allowed to perform this action? 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} && !$self->authCan('boardmod')) + || ($num && $p->{uid} == $self->authInfo->{id} && $p->{hidden}); # check form etc... my $frm; |