Merge pull request #3226 from gravitl/master

Master
This commit is contained in:
Abhishek K 2024-11-27 13:16:10 +04:00 committed by GitHub
commit 462395f6f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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