Skip to content

Commit

Permalink
Override leader roles for events API
Browse files Browse the repository at this point in the history
  • Loading branch information
simfeld committed Sep 22, 2024
1 parent 45c9129 commit 3adfa35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/pbs/event/course.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module Pbs::Event::Course

included do
include Pbs::Event::RestrictedRole
Event::Course::LEADER_ROLES = [Event::Course::Role::Leader, Event::Course::Role::ClassLeader].map(&:sti_name)

self.used_attributes += [:advisor_id, :express_fee, :bsv_days, :has_confirmations] +
LANGUAGES.collect { |key| :"language_#{key}" } +
Expand Down

0 comments on commit 3adfa35

Please sign in to comment.