diff options
author | Yorhel <git@yorhel.nl> | 2009-05-11 10:51:57 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-05-11 10:51:57 +0200 |
commit | 361cd7472ccd57c3e95bd1537cf4103b83c0dc9b (patch) | |
tree | b5c1cea39e8253dbf6aed1cb21fab06da4340346 /lib/VNDB/Handler/Misc.pm | |
parent | e35a92e7e1fb024d6490616329a74ae880b8ee9b (diff) |
Make sure to get current hidden status when (un)hiding a release
Diffstat (limited to 'lib/VNDB/Handler/Misc.pm')
-rw-r--r-- | lib/VNDB/Handler/Misc.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index a9a5ad14..fca3e5a7 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -330,7 +330,7 @@ sub itemmod { return $self->htmlDenied if !$self->authCan($act eq 'hide' ? 'del' : 'lock'); my $obj = $type eq 'v' ? $self->dbVNGet(id => $iid)->[0] : - $type eq 'r' ? $self->dbReleaseGet(id => $iid, what => 'vn')->[0] : + $type eq 'r' ? $self->dbReleaseGet(id => $iid, what => 'vn extended')->[0] : $self->dbProducerGet(id => $iid)->[0]; return 404 if !$obj->{id}; |