config/routes.rb in chaltron-0.2.11 vs config/routes.rb in chaltron-0.3.0
- old
+ new
@@ -13,10 +13,11 @@
end
resources :logs, controller: 'chaltron/logs', only: [:index, :show]
# search and create LDAP users
- get 'ldap/search' => 'chaltron/ldap#search'
- post 'ldap/multi_new' => 'chaltron/ldap#multi_new'
- post 'ldap/multi_create' => 'chaltron/ldap#multi_create'
-
+ if Devise.omniauth_providers.include?(:ldap) and !Chaltron.ldap_allow_all
+ get 'ldap/search' => 'chaltron/ldap#search'
+ post 'ldap/multi_new' => 'chaltron/ldap#multi_new'
+ post 'ldap/multi_create' => 'chaltron/ldap#multi_create'
+ end
end