Skip to content

Commit

Permalink
fix :: 권한 설정 픽스
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Nov 6, 2023
1 parent 5dbb436 commit b199270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apis/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/user/type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type AuthorityType = "TEACHER" | "STUDENT" | "COMPANY";
type AuthorityType = "TEACHER" | "STUDENT" | "COMPANY" | "DEVELOPER";

export interface RequestBody {
account_id: string;
Expand Down

0 comments on commit b199270

Please sign in to comment.