Add Account.without_internal scope (#29559)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Matt JankowskiandClaire authored and GitHub committed 2024-03-13 14:11:23 +00:00
1 parent acf3f410ae
commit c09b8a7164
4 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ class ApplicationController < ActionController::Base
end
def single_user_mode?
@single_user_mode ||= Rails.configuration.x.single_user_mode && Account.where('id > 0').exists?
@single_user_mode ||= Rails.configuration.x.single_user_mode && Account.without_internal.exists?
end
def use_seamless_external_login?