Skip to content

Commit

Permalink
Merge pull request #3225 from gravitl/release-v0.26.0
Browse files Browse the repository at this point in the history
Release v0.26.0
  • Loading branch information
abhishek9686 authored Nov 27, 2024
2 parents 208cbd3 + ea2a148 commit fca07f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions logic/acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ func InsertAcl(a models.Acl) error {
func GetAcl(aID string) (models.Acl, error) {
a := models.Acl{}
if servercfg.CacheEnabled() {
if len(aclCacheMap) == 0 {
_ = listAcls()
}
var ok bool
a, ok = getAclFromCache(aID)
if ok {
Expand Down

0 comments on commit fca07f6

Please sign in to comment.