added teams
This commit is contained in:
@@ -21,6 +21,7 @@ func getNavItems() []NavItem {
|
||||
return []NavItem{
|
||||
{Name: "Seasons", Href: "/seasons"},
|
||||
{Name: "Leagues", Href: "/leagues"},
|
||||
{Name: "Teams", Href: "/teams"},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +31,7 @@ func getProfileItems(ctx context.Context) []ProfileItem {
|
||||
{Name: "Profile", Href: "/profile"},
|
||||
{Name: "Account", Href: "/account"},
|
||||
}
|
||||
|
||||
|
||||
cache := contexts.Permissions(ctx)
|
||||
if cache != nil && cache.Roles["admin"] {
|
||||
items = append(items, ProfileItem{
|
||||
@@ -38,7 +39,7 @@ func getProfileItems(ctx context.Context) []ProfileItem {
|
||||
Href: "/admin",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user