feat: hide column tindakan for roles other than admin

This commit is contained in:
rahman 2022-05-06 15:12:37 +07:00
parent 7c949403e2
commit 930a757652

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[3];
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[2];
if (store.authentication.userData.role !== "Admin") delete columns[5];