Skip to content

Commit

Permalink
Merge pull request #27 from Code-the-Dream-School/HER-40-create-speak…
Browse files Browse the repository at this point in the history
…er-role-for-user

HER-40: CREATE_SPEAKER_ROLE_FOR_USER
  • Loading branch information
olesiamironenko authored Dec 17, 2024
2 parents bf1929c + e0aec20 commit 1e52cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 1e52cee

Please sign in to comment.