|
@@ -172,6 +172,9 @@ func InsertAcl(a models.Acl) error {
|
|
func GetAcl(aID string) (models.Acl, error) {
|
|
func GetAcl(aID string) (models.Acl, error) {
|
|
a := models.Acl{}
|
|
a := models.Acl{}
|
|
if servercfg.CacheEnabled() {
|
|
if servercfg.CacheEnabled() {
|
|
|
|
+ if len(aclCacheMap) == 0 {
|
|
|
|
+ _ = listAcls()
|
|
|
|
+ }
|
|
var ok bool
|
|
var ok bool
|
|
a, ok = getAclFromCache(aID)
|
|
a, ok = getAclFromCache(aID)
|
|
if ok {
|
|
if ok {
|