Conditions | 4 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
33 | def user_settings_provider |
||
34 | if Rails.configuration.loadbalanced_configuration && !current_user&.has_role?(:super_admin) |
||
35 | current_user.provider |
||
36 | elsif Rails.configuration.loadbalanced_configuration |
||
37 | @user_domain |
||
38 | else |
||
39 | "greenlight" |
||
40 | end |
||
41 | end |
||
42 | end |
||
43 |