diff --git a/web/src/common/sentry.ts b/web/src/common/sentry.ts index 175c1a958..0884fdde6 100644 --- a/web/src/common/sentry.ts +++ b/web/src/common/sentry.ts @@ -80,5 +80,5 @@ export function currentInterface(): string { if (pathMatches && pathMatches.length >= 2) { currentInterface = pathMatches[1]; } - return currentInterface; + return currentInterface.toLowerCase(); } diff --git a/web/src/common/ui/config.ts b/web/src/common/ui/config.ts index 73067867a..ae27d31eb 100644 --- a/web/src/common/ui/config.ts +++ b/web/src/common/ui/config.ts @@ -1,3 +1,4 @@ +import { currentInterface } from "@goauthentik/common/sentry"; import { me } from "@goauthentik/common/users"; import { UserSelf } from "@goauthentik/api"; @@ -65,6 +66,12 @@ export class DefaultUIConfig implements UIConfig { perPage: 20, }; locale = ""; + + constructor() { + if (currentInterface() === "user") { + this.enabledFeatures.apiDrawer = false; + } + } } let globalUiConfig: Promise;