Merge branch 'develop' into 'devops-staging'

feat: hide column tindakan for roles other than admin

See merge request empatnusabangsa/ppob/ppob-frontend!166
This commit is contained in:
Rahman Efendi 2022-05-06 08:15:43 +00:00
commit be5852522c

View File

@ -132,6 +132,7 @@ export const ProductComponent = observer((props) => {
//if (store.authentication.userData.role === "Admin Partner") delete columns[2]; //if (store.authentication.userData.role === "Admin Partner") delete columns[2];
if (store.authentication.userData.role === "Admin Partner") delete columns[3]; if (store.authentication.userData.role === "Admin Partner") delete columns[3];
if (store.authentication.userData.role != "Admin Partner") delete columns[4]; if (store.authentication.userData.role != "Admin Partner") delete columns[4];
if (store.authentication.userData.role !== "Admin") delete columns[8];
if (store.authentication.userData.role !== "Admin") delete columns[6]; if (store.authentication.userData.role !== "Admin") delete columns[6];
if (store.authentication.userData.role !== "Admin") delete columns[2]; if (store.authentication.userData.role !== "Admin") delete columns[2];
if (store.authentication.userData.role !== "Admin") delete columns[5]; if (store.authentication.userData.role !== "Admin") delete columns[5];