MyBB Support

[ask] custom file permission

Submitted by Hollyman13, , Thread ID: 71814

Thread Closed

RE: [ask] custom file permission

This post was last modified: 06-02-2018, 06:11 PM by Tutti Frutti
#7
Do this..

PHP Code:
if (in_array($mybb->user['usergroup'] , array(1,7))) error_no_permission();
// Place rest of the codes 

If that doesn't work attach the plugin file I'll see where to put it.. I've done it before but forgot where I exactly placed it.
Also edit this partarray(1,7))) and add the usergroup ids you want to restrict.

Users browsing this thread: 1 Guest(s)