2009-06-20, 01:42 AM
Reputation will display in profile even if the display group has it off.
To reproduce:
1. Assign a users display group to any group that has the permission "Show reputations for users in this group?" to NO.
2. View profile.
You'll see the reputation and the link. The link shouldn't even work imho since the rep display is off for the group. If that user has it as their display group it shouldn't be viewable. I was told that's the point of the display group to begin with.
Let me know a posted official fix. I will subscribe to thread.
Thank you.
EDIT: Tracking this farther down the line.
Seems this is used to get perms.
$memperms = user_permissions($memprofile['uid']);
Which uses this function:
usergroup_permissions()
Both inside inc/functions.php
Apparently none of it takes into account the display group.
The functions_post.php of course does.
Thanks.
To reproduce:
1. Assign a users display group to any group that has the permission "Show reputations for users in this group?" to NO.
2. View profile.
You'll see the reputation and the link. The link shouldn't even work imho since the rep display is off for the group. If that user has it as their display group it shouldn't be viewable. I was told that's the point of the display group to begin with.
Let me know a posted official fix. I will subscribe to thread.
Thank you.
EDIT: Tracking this farther down the line.
Seems this is used to get perms.
$memperms = user_permissions($memprofile['uid']);
Which uses this function:
usergroup_permissions()
Both inside inc/functions.php
Apparently none of it takes into account the display group.
The functions_post.php of course does.
// Get the usergroup
if($post['userusername'])
{
if(!$post['displaygroup'])
{
$post['displaygroup'] = $post['usergroup'];
}
$usergroup = $groupscache[$post['displaygroup']];
}
else
{
$usergroup = $groupscache[1];
}
Thanks.