Преглед на файлове

update role untuk audit

yazid преди 2 месеца
родител
ревизия
2f3c831212
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 {