diff --git a/templates/_navigation.html b/templates/_navigation.html
index d5d31c99f7da0359b4cef44b5785c68f514a1d37..67c55621ea263a34717b87096a113a70a06b094b 100644
--- a/templates/_navigation.html
+++ b/templates/_navigation.html
@@ -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>
diff --git a/util.go b/util.go
index 2f40864726bffbb5bd0b288e7adf9735d90cd11f..ee392ce3d79dbdc0d82636d7002a565a7011c511 100644
--- a/util.go
+++ b/util.go
@@ -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