Remove ldap:Group model

This commit is contained in:
garrettmills
2020-05-20 20:35:17 -05:00
parent ea77402750
commit faab948a6b
7 changed files with 41 additions and 99 deletions

View File

@@ -14,7 +14,7 @@ class GroupsController extends LDAPController {
constructor() {
super()
this.Group = this.models.get('ldap:Group')
this.Group = this.models.get('auth:Group')
}
// TODO flitter-orm chunk query
@@ -106,7 +106,7 @@ class GroupsController extends LDAPController {
async get_resource_from_dn(dn) {
const cn = this.get_cn_from_dn(dn)
if ( cn ) {
return this.Group.findOne({name: cn, ldap_visible: true})
return this.Group.findOne({name: cn, ldap_visible: true, active: true})
}
}
}