Checks that the user has the specified permissions. If the user does not, they are redirected to the DefaultPermission route.
public permission ( mixed $Permission, boolean $FullMatch = true, string $JunctionTable = '', integer $JunctionID = '' ) | ||
$Permission | mixed | A permission or array of permission names required to access this resource. |
$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 | The ID of the junction permission. |