Checks whether the Web user is allowed to perform the specified action.
public allows ( |
||
$action | the action to be performed | |
$user | the user object | |
$request | ||
return | boolean | null | true if the user is allowed, false if the user is denied, null if the rule does not apply to the user |