diff --git a/public/plugin.ts b/public/plugin.ts index 1603637c..2b31d411 100644 --- a/public/plugin.ts +++ b/public/plugin.ts @@ -60,7 +60,7 @@ import { getDataSourceFromUrl, } from './utils/datasource-utils'; -export async function hasApiPermission(core: CoreSetup): Promise { +async function hasApiPermission(core: CoreSetup): Promise { try { const permissions = await core.http.get(API_ENDPOINT_PERMISSIONS_INFO); return permissions.has_api_access || false; diff --git a/public/types.ts b/public/types.ts index 70e16872..96e58735 100644 --- a/public/types.ts +++ b/public/types.ts @@ -19,10 +19,7 @@ import { SavedObjectsManagementPluginStart, } from '../../../src/plugins/saved_objects_management/public'; import { ManagementOverViewPluginSetup } from '../../../src/plugins/management_overview/public'; -import { - DataSourcePluginSetup, - DataSourcePluginStart, -} from '../../../src/plugins/data_source/public/types'; +import { DataSourcePluginStart } from '../../../src/plugins/data_source/public/types'; import { DataSourceManagementPluginSetup } from '../../../src/plugins/data_source_management/public'; // eslint-disable-next-line @typescript-eslint/no-empty-interface @@ -34,7 +31,6 @@ export interface SecurityPluginSetupDependencies { savedObjectsManagement: SavedObjectsManagementPluginSetup; managementOverview?: ManagementOverViewPluginSetup; dataSourceManagement?: DataSourceManagementPluginSetup; - dataSource?: DataSourcePluginSetup; } export interface Cluster {