Explorar o código

commit production

andifebri %!s(int64=3) %!d(string=hai) anos
pai
achega
20210234db
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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" });