Class app\components\User

Inheritanceapp\components\User » yii\web\User

Class User

Custom user class with additional checks

Public Methods

Hide inherited methods

MethodDescriptionDefined By
can() Extended permission check with Guest role and route app\components\User

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
GUEST_ROLE 'Guest' app\components\User

Method Details

can() public method

Extended permission check with Guest role and route

public bool can ( $permissionName, $params = [], $allowCaching true )
$permissionName string
$params array
$allowCaching bool|true