Skip to content
Snippets Groups Projects
Commit 904e5781 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed formatting

parent 70790dc8
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<nav>
<ul>
<li class="title"><a href="/">i.k8r</a></li>
{{if .hasRole "imghost:user" }}
{{if .HasRole "imghost:user" }}
<li><a href="/upload">Upload</a></li>
{{end}}
<li class="spacer"></li>
......
......@@ -16,7 +16,7 @@ type UserInfo struct {
Roles []string
}
func (info *UserInfo) hasRole(role string) bool {
func (info *UserInfo) HasRole(role string) bool {
for _, r := range info.Roles {
if r == role {
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment