public function hasAccess($action, $model = null, $params = [])
    {
        return Yii::$app->user->can(
            $this->modelClass.'.'.$action,
            array_merge($params, $model === null ? [] : ['model' => $model])
        );
    }