filters\auth\AuthMethod isOptional()

isOptional() protected method (available since version 2.0.7)

Checks, whether authentication is optional for the given action.

See also $optional.

protected boolean isOptional ( $action )
$action yii\base\Action

Action to be checked.

return boolean

Whether authentication is optional or not.

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

Please login to continue.