mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update viewprofile.php
This commit is contained in:
parent
6f5d1543ed
commit
8e9664822c
@ -130,7 +130,7 @@ $template->assign_vars(array(
|
||||
'TRAF_STATS' => !(IS_AM || $profile_user_id),
|
||||
));
|
||||
|
||||
if (IS_ADMIN)
|
||||
if (IS_AM)
|
||||
{
|
||||
$group_membership = array();
|
||||
$sql = "
|
||||
@ -169,12 +169,6 @@ if (IS_ADMIN)
|
||||
'GROUP_MEMBERSHIP_TXT' => $group_membership,
|
||||
));
|
||||
}
|
||||
else if (IS_MOD)
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'SHOW_GROUP_MEMBERSHIP' => ($profiledata['user_level'] != USER),
|
||||
));
|
||||
}
|
||||
|
||||
// Show users torrent-profile
|
||||
if (IS_AM || $profile_user_id || !bf($profiledata['user_opt'], 'user_opt', 'user_dls'))
|
||||
|
Loading…
Reference in New Issue
Block a user