Commit a430680a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Allow set ldap_cn and ldap_access for new group via API

parent 5011af46
......@@ -45,6 +45,8 @@ Parameters:
+ `name` (required) - The name of the group
+ `path` (required) - The path of the group
+ `ldap_cn` (optional) - LDAP group name to sync with
+ `ldap_access` (optional) - Access level for LDAP group members
## Transfer project to group
......
......@@ -42,7 +42,7 @@ module API
authenticated_as_admin!
required_attributes! [:name, :path]
attrs = attributes_for_keys [:name, :path]
attrs = attributes_for_keys [:name, :path, :ldap_cn, :ldap_access]
@group = Group.new(attrs)
@group.owner = current_user
......
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