PHP 인터페이스 yii\rbac\CheckAccessInterface

부터: 2.0.9
저자: Sam Mousa ([email protected])
파일 보기 프로젝트 열기: yiisoft/yii2

공개 메소드들

메소드 설명
checkAccess ( string | integer $userId, string $permissionName, array $params = [] ) : boolean Checks if the user has the specified permission.

메소드 상세

checkAccess() 공개 메소드

Checks if the user has the specified permission.
public checkAccess ( string | integer $userId, string $permissionName, array $params = [] ) : boolean
$userId string | integer the user ID. This should be either an integer or a string representing the unique identifier of a user. See [[\yii\web\User::id]].
$permissionName string the name of the permission to be checked against
$params array name-value pairs that will be passed to the rules associated with the roles and permissions assigned to the user.
리턴 boolean whether the user has the specified permission.