forked from External/greenlight
GRN2-180: First stages of refactoring code for v2.4 (#748)
* Email rescues and authenticator concern * Application controller and helper clean up * Moved controller code out of helpers * More helper and email clean up * Cleaned up remaining helpers and create omniauth_options * Controller code clean up * restructured views structure * Restructured role code * Restructured profile and code clean up * Master merge * Added bbb server concern to deal with bbb calls * Bug fixes and changes after changes * rspec * More rubocop fixes
This commit is contained in:
@ -19,8 +19,6 @@
|
||||
require 'bbb_api'
|
||||
|
||||
class User < ApplicationRecord
|
||||
include ::BbbApi
|
||||
|
||||
attr_accessor :reset_token
|
||||
after_create :assign_default_role
|
||||
after_create :initialize_main_room
|
||||
@ -203,12 +201,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def greenlight_account?
|
||||
return true unless provider # For testing cases when provider is set to null
|
||||
return true if provider == "greenlight"
|
||||
return false unless Rails.configuration.loadbalanced_configuration
|
||||
# Proceed with fetching the provider info
|
||||
provider_info = retrieve_provider_info(provider, 'api2', 'getUserGreenlightCredentials')
|
||||
provider_info['provider'] == 'greenlight'
|
||||
social_uid.nil?
|
||||
end
|
||||
|
||||
def activation_token
|
||||
|
Reference in New Issue
Block a user