Browse Source

update role untuk audit

yazid 2 tháng trước cách đây
mục cha
commit
2f3c831212
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {