MyBB Community Forums

Full Version: Make it so Mods can't ban
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to make it so that only super mods and admins can ban.

There was an old code on the forums but it only disables banning in the modcp.
Sorry, but I don't see a way from the acp. Welcome to mybb
It would be a core file edit.


I'll try and find it.
Ok. On line 2742, after
if($mybb->input['action'] == "banning")
{

add
if($mybb->usergroup['issupermod'] != 1) {error_no_permission();}
(2011-08-20, 06:07 PM)PJGIH Wrote: [ -> ]It would be a core file edit.


I'll try and find it.
Ok. On line 2742, after
if($mybb->input['action'] == "banning")
{

add
if($mybb->usergroup['issupermod'] != 1) {error_no_permission();}

Thankyou I'll try this.
^ that appears to be modcp.php file in the root directory ..
Oops, sorry. Yes, that is in ./modcp.php
Well mods can't ban, but now nobody can get in to the ModCP. (Btw, we renamed Super Mod to Mod Boss, will that change anything?)