X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e8e0182d65a74b1a222127eb8b36f31a906b14c8..a1e2b8ba77e4a7273940a3fc542bc42e282618a7:/src/services/auth-service/auth-service.ts diff --git a/src/services/auth-service/auth-service.ts b/src/services/auth-service/auth-service.ts index 6faaf99e..8c2ad5ca 100644 --- a/src/services/auth-service/auth-service.ts +++ b/src/services/auth-service/auth-service.ts @@ -4,7 +4,7 @@ import { User, userPrefs } from "~/models/user"; import { AxiosInstance } from "axios"; -import { ApiActions, ProgressFn } from "~/services/api/api-actions"; +import { ApiActions } from "~/services/api/api-actions"; import * as uuid from "uuid/v4"; export const API_TOKEN_KEY = 'apiToken'; @@ -56,7 +56,7 @@ export class AuthService { } public getIsAdmin(): boolean { - return !!localStorage.getItem(USER_IS_ADMIN); + return localStorage.getItem(USER_IS_ADMIN) === 'true'; } public getUser(): User | undefined {