Browse Source

Merge pull request #3226 from gravitl/master

Master
Abhishek K 9 months ago
parent
commit
462395f6f2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      logic/acls.go

+ 3 - 0
logic/acls.go

@@ -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 {