feat(TALE-29): handle no ACL configurations being available

This commit is contained in:
Aarnav Tale
2024-08-04 17:30:41 -04:00
parent 224cbbdcaf
commit b8999161a2
3 changed files with 82 additions and 11 deletions
+1 -5
View File
@@ -102,11 +102,7 @@ export default function Header({ data }: Properties) {
<nav className="container flex items-center gap-x-4 overflow-x-auto">
<TabLink to="/machines" name="Machines" icon={<ServerIcon className="w-4 h-4" />} />
<TabLink to="/users" name="Users" icon={<PeopleIcon className="w-4 h-4" />} />
{data?.acl.read
? (
<TabLink to="/acls" name="Access Control" icon={<LockIcon className="w-4 h-4" />} />
)
: undefined}
<TabLink to="/acls" name="Access Control" icon={<LockIcon className="w-4 h-4" />} />
{data?.config.read
? (
<>