summaryrefslogtreecommitdiffstats
path: root/app/controllers/auth_sources_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/auth_sources_controller.rb')
-rw-r--r--app/controllers/auth_sources_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/auth_sources_controller.rb b/app/controllers/auth_sources_controller.rb
index 8b8ee8d05..c850bc83d 100644
--- a/app/controllers/auth_sources_controller.rb
+++ b/app/controllers/auth_sources_controller.rb
@@ -67,7 +67,7 @@ class AuthSourcesController < ApplicationController
def destroy
@auth_source = AuthSource.find(params[:id])
- unless @auth_source.users.find(:first)
+ unless @auth_source.users.exists?
@auth_source.destroy
flash[:notice] = l(:notice_successful_delete)
end