Remove ldap:Group model
This commit is contained in:
@@ -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})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user