mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-03 06:22:35 +08:00
Remove create new project/org from nav menu when not logged in
This commit is contained in:
parent
9e3cedc100
commit
4211f214c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user