2014-02-11, 05:38 PM
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();
}
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();
}