Commit 2529f43f82dc7685272d6ef5db33ecb858cccf8a
1 parent
33d137a671
Exists in
master
and in
1 other branch
removed pritnfs
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
auth_utility.go
... | ... | @@ -10,7 +10,6 @@ import ( |
10 | 10 | "net/http" |
11 | 11 | |
12 | 12 | "github.com/dgrijalva/jwt-go" |
13 | - "fmt" | |
14 | 13 | ) |
15 | 14 | |
16 | 15 | const OneDay = time.Hour*24 |
... | ... | @@ -193,7 +192,6 @@ func roleAuthorized(authorizedRoles []string, userClaims *TokenClaims) bool { |
193 | 192 | return false |
194 | 193 | } |
195 | 194 | for _, r := range authorizedRoles { |
196 | - fmt.Printf("comparing %s with %s\n", userClaims.Role, r) | |
197 | 195 | if userClaims.Role == r || r == "*" { |
198 | 196 | return true |
199 | 197 | } | ... | ... |