public function hasTriggerPermission($class)
    {
        $model = new $class();

        if (!$model instanceof NgRestModel) {
            return false;
        }

        return Yii::$app->adminmenu->getApiDetail($class::ngRestApiEndpoint());
    }