MyBB Central

Full Version: Only Certain Usergroups Can View Bans.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This was posted a while back and i lost the code, anybody can help? I want to only allow certain groups to view the page.
Set permissions in the bans.php

Example
PHP Code:
if(!in_array($mybb->user['usergroup'], array('3','4','6')))
{
    
error_no_permission();


3, 4 and 6 being the usergroup ID.
(Jul 14, 2010, 11:05 AM)NeoFusion720 Wrote: [ -> ]Set permissions in the bans.php

Example
PHP Code:
if(!in_array($mybb->user['usergroup'], array('3','4','6')))
{
    
error_no_permission();


3, 4 and 6 being the usergroup ID.

Thanks man! Your always helping me here.
Ya, I like to help people Smile