Browse Source

Uppercasing

pull/1/head
Sebastian 9 years ago
parent
commit
a6517cdcc7
  1. 2
      src/Squidex/app/shared/services/auth.service.ts

2
src/Squidex/app/shared/services/auth.service.ts

@ -32,7 +32,7 @@ export class Profile {
} }
public get isAdmin(): boolean { public get isAdmin(): boolean {
return this.user.profile['role'].toLowerCase() === 'administrator'; return this.user.profile['role'].toUpperCase() === 'ADMINISTRATOR';
} }
public get token(): string { public get token(): string {

Loading…
Cancel
Save