Returns a boolean value indicating if the action is permitted.
public checkPermission ( string | array $permission, boolean $fullMatch = true, string $junctionTable = '', integer | string $junctionID = '' ) : boolean | ||
$permission | string | array | The permission (or array of permissions) to check. |
$fullMatch | boolean | If $Permission is an array, $FullMatch indicates if all permissions specified are required. If false, the user only needs one of the specified permissions. |
$junctionTable | string | The name of the junction table for a junction permission. |
$junctionID | integer | string | The JunctionID associated with $Permission (ie. A discussion category identifier). |
return | boolean | Returns **true** if the user has permission or **false** otherwise. |