diff --git a/src/apis/user/index.ts b/src/apis/user/index.ts index a76cfd5..43f5929 100644 --- a/src/apis/user/index.ts +++ b/src/apis/user/index.ts @@ -22,7 +22,7 @@ export const Login = (body: RequestBody, checkBoxValue: boolean) => { }, { onSuccess: (res) => { - if (res.authority !== "STUDENT") { + if (res.authority !== "STUDENT" && res.authority !== "DEVELOPER") { append({ title: "해당 서비스를 사용할 수 없는 계정입니다.", message: "", diff --git a/src/apis/user/type.ts b/src/apis/user/type.ts index 673ae37..0e8db49 100644 --- a/src/apis/user/type.ts +++ b/src/apis/user/type.ts @@ -1,4 +1,4 @@ -type AuthorityType = "TEACHER" | "STUDENT" | "COMPANY"; +type AuthorityType = "TEACHER" | "STUDENT" | "COMPANY" | "DEVELOPER"; export interface RequestBody { account_id: string;