diff --git a/util.go b/util.go
index 9d1979dd48dabfc0bd5559e428ee1c445d5a61d9..cdaf5a58db0ba9dba6fd14b3d36a563e909d1281 100644
--- a/util.go
+++ b/util.go
@@ -7,6 +7,7 @@ import (
 	"time"
 	"database/sql"
 	"github.com/go-redis/redis"
+	"strings"
 )
 
 type UserInfo struct {
@@ -49,12 +50,11 @@ type Album struct {
 }
 
 func parseUser(r *http.Request) UserInfo {
-	println(r.Header.Get("X-Auth-Roles"))
 	return UserInfo{
 		r.Header.Get("X-Auth-Subject"),
 		r.Header.Get("X-Auth-Username"),
 		r.Header.Get("X-Auth-Email"),
-		[]string{},
+		strings.Split(r.Header.Get("X-Auth-Roles"), ","),
 	}
 }