feat: hide column tindakan admin partner

This commit is contained in:
rahman 2022-05-12 17:00:53 +07:00
parent 6a26068339
commit e883078103

View File

@ -140,6 +140,7 @@ export const ProductComponent = observer((props) => {
]; ];
//if (store.authentication.userData.role !== "Admin") columns.pop(); //if (store.authentication.userData.role !== "Admin") columns.pop();
//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[9];
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[8];