Skip to content

Commit

Permalink
server/auth: refresh cache on each NewAuthStore
Browse files Browse the repository at this point in the history
- permissions were incorrectly loaded on restarts.
- #14355
  • Loading branch information
Vivek Patani committed Aug 18, 2022
1 parent 27ffd7e commit a0d0455
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/auth/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,8 @@ func NewAuthStore(lg *zap.Logger, be AuthBackend, tp TokenProvider, bcryptCost i
tx.Unlock()
be.ForceCommit()

as.refreshRangePermCache(tx)

return as
}

Expand Down

0 comments on commit a0d0455

Please sign in to comment.