Skip to content

Commit

Permalink
Fix OwnerAuthManager
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Dec 9, 2020
1 parent 5ca1f3e commit 2486689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/OwnerAuthManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (c *OwnerAuthManager) OwnerOrAdmin(idParam string) func(res http.ResponseWr
if userId == "" {
userId = mux.Vars(req)[idParam]
}
roles := user.GetAsArray("roles")
roles := user.GetAsArray("Roles")
admin := false
for _, role := range roles.Value() {
r, ok := role.(string)
Expand Down

0 comments on commit 2486689

Please sign in to comment.