summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-05 08:52:50 +0200
committerYorhel <git@yorhel.nl>2009-04-05 08:52:50 +0200
commit5230d90b7944028bb46f3b151d3ced5dc1779964 (patch)
tree1e5615e11169130812c603bf98b1f03c367f1709 /lib
parenta1c32662338082c422719e3ac5801c17320bef95 (diff)
Allow normal users to browse deleted tags
If they can view them, hiding the tags doesn't really make much sense.
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Tags.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm
index 49193e61..eb02373a 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -348,16 +348,14 @@ sub taglist {
{ name => 't', required => 0, default => -1, enum => [ -1..2 ] },
{ name => 'q', required => 0, default => '' },
);
- $f->{t} = 0 if !$self->authCan('tagmod') && $f->{t} == 1;
return 404 if $f->{_err};
my($t, $np) = $self->dbTagGet(
order => $f->{s}.($f->{o}eq'd'?' DESC':' ASC'),
page => $f->{p},
results => 50,
- $f->{t} != -1 || $self->authCan('tagmod') ? (
- state => $f->{t} ) : (),
- search => $f->{q},
+ state => $f->{t},
+ search => $f->{q}
);
my $title = $f->{t} == -1 ? 'Browse tags' : $f->{t} == 0 ? 'Tags awaiting moderation' : $f->{t} == 1 ? 'Deleted tags' : 'All visible tags';