Merge branch 'master' into 14452-my-account
[arvados-workbench2.git] / src / services / auth-service / auth-service.ts
index 6faaf99ee7a37109a93021cd9cafeb31c4fa57a3..8c2ad5caf3065c7d1779c8eae13b01b934b95581 100644 (file)
@@ -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 {