filters\AccessRule allows()

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

doc_Yii
2016-10-30 17:02:23
Comments
Leave a Comment

Please login to continue.