app/views/chaltron/users/index.html.erb in chaltron-1.0.10 vs app/views/chaltron/users/index.html.erb in chaltron-1.1.0
- old
+ new
@@ -3,10 +3,10 @@
<div class='row'>
<div class='col-md-3'>
<%= render partial: 'side_filters', locals: { filters: @filters } %>
<hr>
- <% if ldap_enabled? %>
+ <% if ldap_enabled? and !Chaltron.ldap_allow_all %>
<div class='dropdown pull-right'>
<%= content_tag :button, type: 'button', class: 'btn btn-primary dropdown-toggle',
data: {toggle: 'dropdown'}, aria: {expanded: false, haspopup: true}, id: 'new_user_button' do %>
<%= icon :fas, :plus, t('.new_user') %>
<% end %>