Skip to content

Commit

Permalink
Merge pull request #3226 from gravitl/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
abhishek9686 authored Nov 27, 2024
2 parents a0747d4 + fca07f6 commit 462395f
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 462395f

Please sign in to comment.