소스 검색

commit production

andifebri 3 년 전
부모
커밋
20210234db
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/Main/Login.js

+ 1 - 1
components/Main/Login.js

@@ -69,7 +69,7 @@ class Login extends Component {
 				axiosAPI.defaults.headers.common["Authorization"] = auth.data.token;
 				if (auth.data.user.role.id === 2022) {
 					Router.push({ pathname: "/pt/pemantauan" });
-				} else if ([2020, 2021].includes(auth.data.user.role.id)) {
+				} else if ([2020, 2021, 2023].includes(auth.data.user.role.id)) {
 					Router.push({ pathname: "/app/pemantauan" });
 				} else {
 					this.setState({ error: "Akun tidak ada" });