Browse Source

update role untuk audit

yazid 2 months ago
parent
commit
2f3c831212
1 changed files with 1 additions and 1 deletions
  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 {