Discourse Assign - bug taking site down

Hello Roman,
we’ve got a simmilar problem with the discourse-assign plugin on our site after upgrading to 2.4.0beta4.

The Problem only appears on users logging in via ldap. (we use “GitHub - jonmbake/discourse-ldap-auth: Discourse plugin to enable LDAP/Active Directory authentication. · GitHub” for the ldap connection)

the response to the DB.query is:
=> [“staff”]
but " Group.where(name: ‘staff’).pluck(:id).join(‘|’)" returns “”.

Btw: On Version “2.4.0.beta1 +203” the responses are similar, but login by ldap is possible. (ldap version 0.4.0, assign version 0.1)

Any help welcome,
Thanks,
Frank