filters\AccessRule $roles

$roles public property

List of roles that this rule applies to. Two special roles are recognized, and they are checked via yii\web\User::$isGuest:

  • ?: matches a guest user (not authenticated yet)
  • @: matches an authenticated user

If you are using RBAC (Role-Based Access Control), you may also specify role or permission names. In this case, yii\web\User::can() will be called to check access.

If this property is not set or empty, it means this rule applies to all roles.

public array $roles = null
doc_Yii
2016-10-30 17:02:23
Comments
Leave a Comment

Please login to continue.