Skip to content

Commit

Permalink
Update viewprofile.php
Browse files Browse the repository at this point in the history
  • Loading branch information
belomaxorka committed Nov 7, 2023
1 parent 6f5d154 commit 8e96648
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions library/includes/ucp/viewprofile.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
'TRAF_STATS' => !(IS_AM || $profile_user_id),
));

if (IS_ADMIN)
if (IS_AM)
{
$group_membership = array();
$sql = "
Expand Down Expand Up @@ -169,12 +169,6 @@
'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'))
Expand Down

0 comments on commit 8e96648

Please sign in to comment.