MyBB Community Forums

Full Version: Usergroup not allow to view profiles (except for himself)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
By default in Mybb, if you disable for a group the option to view profiles, the user can't view his own profile!!
I don't know if this is logical or not, but for allowing a user who belongs to a 'user group' which can't view profiles to be able to view his own profile, in member.php around line 1435

change

if($mybb->usergroup['canviewprofiles'] == 0 )
{
error_no_permission();
}


For

if($mybb->usergroup['canviewprofiles'] == 0 && $mybb->user['uid'] != $mybb->input['uid'])
{
error_no_permission();
}