From a6517cdcc740dc30165c47e9f3b3ef5962f34a4c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 19 Feb 2017 21:06:03 +0100 Subject: [PATCH] Uppercasing --- src/Squidex/app/shared/services/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {