parent
5870769e7d
commit
5e785266a5
@ -27,10 +27,8 @@ export default class {
|
||||
|
||||
xo.on('start', () => {
|
||||
xo.addConfigManager('acls',
|
||||
() => this.getAllAcls(),
|
||||
acls => Promise.all(mapToArray(acls, acl =>
|
||||
this.addAcl(acl.subjectId, acl.objectId, acl.action)
|
||||
))
|
||||
() => aclsDb.get(),
|
||||
acls => aclsDb.update(acls)
|
||||
)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user