2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-14 23:38:53 +00:00

[UI] Fix superuser banner (#11716)

- Allow it to be dismissed again
This commit is contained in:
Oliver
2026-04-11 10:48:39 +10:00
committed by GitHub
parent fcdba5d76a
commit a05d01b759

View File

@@ -221,7 +221,9 @@ export function Header() {
</Group>
</Group>
</Container>
{showElevated && (user?.is_superuser || user?.is_staff) && (
{showSuperuserAlert &&
showElevated &&
(user?.is_superuser || user?.is_staff) && (
<Paper p={0} m={5}>
<Alert
icon={<IconUserBolt />}