mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-11 07:34:31 +08:00
commit
fca07f6582
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue