yii2mod / yii2-rbac

RBAC Manager for Yii 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How I can pass parameters to a rule?

LordKino opened this issue · comments

When called in action, I can pass parameters:

if (!\Yii::$app->user->can('rule', **['post' => $id]**)) {
	throw new ForbiddenHttpException('Access denied');
}

How I can pass parameters using this module?

Hi, check this issue - #11