Commit 93570505 authored by Rémy Coutable's avatar Rémy Coutable

Fix broken group creation API when passing LDAP parameters (again)

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent cc012168
......@@ -71,10 +71,10 @@ module API
if group.persisted?
# NOTE: add backwards compatibility for single ldap link
if ldap_link_attrs[:ldap_cn].present?
if ldap_link_attrs[:cn].present?
group.ldap_group_links.create(
cn: ldap_cn,
group_access: ldap_access
cn: ldap_link_attrs[:cn],
group_access: ldap_link_attrs[:group_access]
)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment