allows() public method
Checks whether the Web user is allowed to perform the specified action.
public boolean|null allows ( $action, $user, $request )$action yii\base\Action
The action to be performed $user yii\web\User
The user object $request yii\web\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