getPermissions()
getPermissions( $permission, $user = null, $creator = null)
Parameters
$permission | ||
$user | ||
$creator |
Permissions class to use when we need to pretend we are checking permissions
Must instantiate it, then overwrite the global $perms object before calling any method that needs to check permissions.