summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/CommonHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-12 16:02:26 +0200
committerYorhel <git@yorhel.nl>2009-08-12 16:02:26 +0200
commitef6e1d16bf0e6be3dde6f28d645a10fd89f0de6b (patch)
treea9a7f261abe409f4988b00abe1f15848d0a87ebb /lib/VNDB/Util/CommonHTML.pm
parente8ed9663331278c6bd555f7a69c45e84fc4bb34e (diff)
Allow a usermod to browse a users' list even when it's hidden
To make sure we can still see a troll if he marks his list as hidden. Only admins have this usermod privilege, and admins are assumed to have raw SQL access anyway.
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 2446457d..84436c8d 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -46,7 +46,7 @@ sub htmlMainTabs {
end;
}
- if($type eq 'u' && $obj->{show_list}) {
+ if($type eq 'u' && ($obj->{show_list} || $self->authCan('usermod'))) {
li $sel eq 'wish' ? (class => 'tabselected') : ();
a href => "/$id/wish", 'wishlist';
end;