fix: get product
This commit is contained in:
parent
bf332f9494
commit
0e12a22be3
|
@ -129,11 +129,11 @@ 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") 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") delete columns[6];
|
if (store.authentication.userData.role !== "Admin") delete columns[6];
|
||||||
if (store.authentication.userData.role === "Admin Partner") delete columns[7];
|
if (store.authentication.userData.role === "Admin Partner") delete columns[7];
|
||||||
if (store.authentication.userData.role === "Admin") delete columns[4];
|
|
||||||
if (store.authentication.userData.role !== "Admin") delete columns[8];
|
if (store.authentication.userData.role !== "Admin") delete columns[8];
|
||||||
if (store.authentication.userData.role === "Admin Partner") delete columns[5];
|
if (store.authentication.userData.role === "Admin Partner") delete columns[5];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user