From 7ac38a02fcda3af1fbf26fa96b67c72ca104c8f3 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 04 一月 2022 11:42:16 +0800 Subject: [PATCH] update TODO#132379 顧問-相片存放路徑未確定, 先隱藏編輯帳戶資訊按鈕 --- PAMapp/shared/services/auth.service.ts | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/PAMapp/shared/services/auth.service.ts b/PAMapp/shared/services/auth.service.ts index 6c10d47..e467576 100644 --- a/PAMapp/shared/services/auth.service.ts +++ b/PAMapp/shared/services/auth.service.ts @@ -1,15 +1,13 @@ -import { Role } from "../models/enum/role"; +import { Role } from "../models/enum/Role"; class AuthService { - private idToken = localStorage.getItem('id_token'); - private currentRole = localStorage.getItem('current_role'); isAdminLogin(): boolean { - return this.currentRole === Role.ADMIN; + return localStorage.getItem('current_role') === Role.ADMIN; } isUserLogin(): boolean { - return this.currentRole === Role.USER; + return localStorage.getItem('current_role') === Role.USER; } } -- Gitblit v1.8.0