MyBB Community Forums

Full Version: Make SMods unable to delete rep?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

Does anyone know how I can make it so that SMods cannot delete user rep? They currently can, I only want to make it so one usergroup (ID 3) can delete reps, any other group cannot touch reps.

Thanks.
Open ./reputation.php and find;
	if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] != 1 && $existing_reputation['adduid'] != $mybb->user['uid'])
	{
		error_no_permission();
	}
and Change it into;
	if($mybb->user['usergroup'] != 3)
	{
		error_no_permission();
	}