Procházet zdrojové kódy

update role untuk audit

yazid před 2 měsíci
rodič
revize
2f3c831212
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      components/Main/Login.js

+ 1 - 1
components/Main/Login.js

@@ -77,7 +77,7 @@ class Login extends Component {
         if (auth.data.user.role.id === 2022) {
           await createLog(auth.data.token, { aktivitas: "PT berhasil Login", menu: "Pelaporan", _csrf: _csrf });
           return location.href = '/pt/pemantauan';
-        } else if ([2020, 2021, 2023, 2024].includes(auth.data.user.role.id)) {
+        } else if ([2020, 2021, 2023, 2071].includes(auth.data.user.role.id)) {
           await createLog(auth.data.token, { aktivitas: "Berhasil Login", menu: "Pelaporan", _csrf: _csrf });
           return location.href = '/app/pemantauan';
         } else {