Fix bad permission checks in Web UI

Fix attempts to check for permissions that don't exist in the Web UI
that has gone unnoticed because the check still succeeds when the
account has the cluster admin permission.
This commit is contained in:
Hornwitser committed 2024-02-06 22:43:04 +01:00
1 parent 535e43b527
commit d3f8c993b1
5 files changed
+6 -5

No files matched your search

@@ -801,7 +801,7 @@ export default function ModPackViewPage() {
title={modPack.name}
extra={<Space>
<ExportButton modPack={modifiedModPack}/>
{account.hasPermission("core.mod-pack.delete") && <Popconfirm
{account.hasPermission("core.mod_pack.delete") && <Popconfirm
title="Delete mod pack and all of its settings?"
placement="bottomRight"
okText="Delete"