You would need to change the line
to
Single group
Multiple groups
Enter the group ID of the group you want to be able to do it.
if($mybb->user['uid'] != "0")
to
Single group
if($mybb->user['usergroup'] == "ADMIN / MOD GROUP ID")
Multiple groups
if($mybb->user['usergroup'] == "Group 1" || $mybb->user['usergroup'] == "Group 2")
Enter the group ID of the group you want to be able to do it.