Commit 336b7b87 authored by Marin Jankovski's avatar Marin Jankovski

Disable ldap user showing only if group is synced with LDAP group.

parent 44b94f7c
......@@ -87,7 +87,7 @@
= form_tag project_teams_update_admin_group_path(@group), id: "new_team_member", class: "bulk_import", method: :put do
%div
= users_select_tag(:user_ids, { multiple: true, skip_ldap: true })
= users_select_tag(:user_ids, { multiple: true, skip_ldap: @group.ldap_cn.present? })
%div.prepend-top-10
= select_tag :group_access, options_for_select(UsersGroup.group_access_roles), class: "project-access-select select2"
%hr
......
= form_for @users_group, url: group_users_groups_path(@group), html: { class: 'form-horizontal users-group-form' } do |f|
.form-group
= f.label :user_ids, "People", class: 'control-label'
.col-sm-10= users_select_tag(:user_ids, { multiple: true, skip_ldap: true , class: 'input-large' })
.col-sm-10= users_select_tag(:user_ids, { multiple: true, skip_ldap: @group.ldap_cn.present? , class: 'input-large' })
.form-group
= f.label :group_access, "Group Access", class: 'control-label'
......
......@@ -12,7 +12,7 @@
.form-group
= f.label :user_ids, "People", class: 'control-label'
.col-sm-10
= users_select_tag(:user_ids, { multiple: true, skip_ldap: true })
= users_select_tag(:user_ids, { multiple: true, skip_ldap: @project.group.ldap_cn.present? })
%p 2. Set access level for them
.form-group
......
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