protected executeRule ( string | integer $user, |
||
$user | 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]]. |
$item | the auth item that needs to execute its rule | |
$params | array | parameters passed to [[CheckAccessInterface::checkAccess()]] and will be passed to the rule |
Результат | boolean | the return value of [[Rule::execute()]]. If the auth item does not specify a rule, true will be returned. |