diff options
author | Yorhel <git@yorhel.nl> | 2009-08-12 16:02:26 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-12 16:02:26 +0200 |
commit | ef6e1d16bf0e6be3dde6f28d645a10fd89f0de6b (patch) | |
tree | a9a7f261abe409f4988b00abe1f15848d0a87ebb /lib/VNDB/Util/CommonHTML.pm | |
parent | e8ed9663331278c6bd555f7a69c45e84fc4bb34e (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.pm | 2 |
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; |