diff --git a/app/models/user.rb b/app/models/user.rb index ba3be79f..2767e628 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -6,7 +6,7 @@ class User < ApplicationRecord :recoverable, :rememberable, :validatable, :jwt_authenticatable, jwt_revocation_strategy: self # Defines available roles and sets default role as user. - ROLES = %w[admin user teacher].freeze + ROLES = %w[admin user teacher speaker].freeze has_many :orders has_many :donations, -> { where(canceled: false) }