diff --git a/frontend/src/component/banners/OutdatedSdksBanner/OutdatedSdksBanner.tsx b/frontend/src/component/banners/OutdatedSdksBanner/OutdatedSdksBanner.tsx index c0be9cc315..4e2ff51ada 100644 --- a/frontend/src/component/banners/OutdatedSdksBanner/OutdatedSdksBanner.tsx +++ b/frontend/src/component/banners/OutdatedSdksBanner/OutdatedSdksBanner.tsx @@ -36,7 +36,7 @@ export const OutdatedSdksBanner = ({ project }: IOutdatedSdksBannerProps) => { }; const outdatedSdksBanner: IBanner = { - message: `We noticed that an outdated SDK version is connected to this Unleash instance.`, + message: `We noticed that an outdated SDK version is connected to ${project} project.`, variant: 'warning', link: 'dialog', linkText: 'Please update those versions', diff --git a/src/lib/services/access-service.ts b/src/lib/services/access-service.ts index 20285d6527..9ab3978eea 100644 --- a/src/lib/services/access-service.ts +++ b/src/lib/services/access-service.ts @@ -41,11 +41,13 @@ import BadDataError from '../error/bad-data-error'; import type { IGroup } from '../types/group'; import type { GroupService } from './group-service'; import { + ADMIN_TOKEN_USER, type IUnleashConfig, type IUserAccessOverview, RoleCreatedEvent, RoleDeletedEvent, RoleUpdatedEvent, + SYSTEM_USER_ID, } from '../types'; import type EventService from '../features/events/event-service'; @@ -889,6 +891,9 @@ export class AccessService { } async isRootAdmin(userId: number): Promise { + if (userId === SYSTEM_USER_ID || userId === ADMIN_TOKEN_USER.id) { + return true; + } const roles = await this.store.getRolesForUserId(userId); return roles.some( (role) => role.name.toLowerCase() === ADMIN.toLowerCase(),