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

Fixed formatting

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