projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 14452-my-account
[arvados-workbench2.git]
/
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 6faaf99ee7a37109a93021cd9cafeb31c4fa57a3..8c2ad5caf3065c7d1779c8eae13b01b934b95581 100644
(file)
--- 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 { 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';
import * as uuid from "uuid/v4";
export const API_TOKEN_KEY = 'apiToken';
@@
-56,7
+56,7
@@
export class AuthService {
}
public getIsAdmin(): boolean {
}
public getIsAdmin(): boolean {
- return
!!localStorage.getItem(USER_IS_ADMIN)
;
+ return
localStorage.getItem(USER_IS_ADMIN) === 'true'
;
}
public getUser(): User | undefined {
}
public getUser(): User | undefined {