Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Usergroup not allow to view profiles (except for himself)
#1
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();
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)