diff --git a/apps/web/src/customisations/WidgetPermissions.ts b/apps/web/src/customisations/WidgetPermissions.ts index 35efa1202f..785ca46c2e 100644 --- a/apps/web/src/customisations/WidgetPermissions.ts +++ b/apps/web/src/customisations/WidgetPermissions.ts @@ -13,18 +13,4 @@ import type { WidgetPermissionsCustomisations } from "@element-hq/element-web-mo // A real customisation module will define and export one or more of the // customisation points that make up the interface above. -export const WidgetPermissionCustomisations: WidgetPermissionsCustomisations = { - // Automatically approve all capabilities for widgets from api.healthchat.ch domain - preapproveCapabilities: async ( - widget: Widget, - requestedCapabilities: Set, - ): Promise> => { - // Check if the widget URL contains api.healthchat.ch - if (widget.templateUrl?.includes("api.healthchat.ch")) { - // Return all requested capabilities as approved - return new Set(requestedCapabilities); - } - // Return undefined to fall back to default behavior for other widgets - return undefined as any; - }, -}; +export const WidgetPermissionCustomisations: WidgetPermissionsCustomisations = {};