This commit is contained in:
zadit frontend
2024-08-01 07:49:04 +00:00
parent e424195d2e
commit a158e44071
6 changed files with 191 additions and 19 deletions

View File

@@ -332,6 +332,12 @@ const Header = ({
</Child>
</>
)}
{user.username !== undefined &&
(user.roleId === 1 || user.roleId === 2) && (
<Child onClick={() => setModal("update_stock")}>
update stock
</Child>
)}
{user.username !== undefined && user.roleId === 2 && (
<Child hasChildren>
connected guest sides