Remove create new project/org from nav menu when not logged in

This commit is contained in:
Nassim Jahnke 2022-07-26 11:46:42 +02:00
parent 9e3cedc100
commit 4211f214c8
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -120,6 +120,9 @@ const navBarMenuLinksHangar = [
{ link: "authors", label: "Authors", icon: IconMdiAccountGroup },
{ link: "staff", label: "Team", icon: IconMdiAccountGroup },
];
if (!authStore.user) {
navBarMenuLinksHangar.splice(2, 2);
}
const auth = useAuth;
const authHost = import.meta.env.HANGAR_AUTH_HOST;