MyBB Community Forums

Full Version: Adminfunctions outside of AdminCP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It would be also nice if the function checkadminpermissions() can be called from outside the AdminCP.

So you can use:

checkadminpermissions("canedittabledocumentor");

Instead of:

$perms = getadminpermissions($mybb->user['uid']);
if ($perms['canedittabledocumentor'] == "no")

Or you can add a function like: hasadminpermission($action) which returns true or false.