Add Account.without_internal
scope (#29559)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
acf3f410ae
commit
c09b8a7164
4 changed files with 7 additions and 6 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue