diff --git a/src/Squidex/app/shared/services/auth.service.ts b/src/Squidex/app/shared/services/auth.service.ts index 694f92d96..7e79c7c4b 100644 --- a/src/Squidex/app/shared/services/auth.service.ts +++ b/src/Squidex/app/shared/services/auth.service.ts @@ -32,7 +32,7 @@ export class Profile { } public get isAdmin(): boolean { - return this.user.profile['role'].toLowerCase() === 'administrator'; + return this.user.profile['role'].toUpperCase() === 'ADMINISTRATOR'; } public get token(): string {