Skip to content

Commit

Permalink
add missing scope validation
Browse files Browse the repository at this point in the history
  • Loading branch information
morphy2k committed Feb 12, 2022
1 parent 985ab7f commit f6017a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions middleware/jwt/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func isScopeValid(s string) bool {
valid = true
case ScopeLocationWrite:
valid = true
case ScopeStatisticRead:
valid = true
case ScopeStatisticWrite:
valid = true
case ScopeUserRead:
valid = true
case ScopeUserWrite:
Expand Down

0 comments on commit f6017a0

Please sign in to comment.