Class dmstr\web\User

Inheritancedmstr\web\User » yii\web\User

Class User.

Custom user class with additional checks and implementation of a 'root' user, who has all permissions (can() always return true)

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$enableRootWarningFlash boolean Whether to show a warning flash message for root users dmstr\web\User
$rootUsers array Users with all permissions dmstr\web\User

Public Methods

Hide inherited methods

MethodDescriptionDefined By
can() Extended permission check with Guest role and route. dmstr\web\User

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
PUBLIC_ROLE 'Public' dmstr\web\User

Property Details

$enableRootWarningFlash public property

Whether to show a warning flash message for root users

$rootUsers public property

Users with all permissions

public array $rootUsers = []

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