Module: Course::ExperiencePointsRecordsAbilityComponent

Includes:
AbilityHost::Component
Defined in:
app/models/components/course/experience_points_records_ability_component.rb

Instance Method Summary collapse

Instance Method Details

#define_permissionsObject


5
6
7
8
9
10
11
# File 'app/models/components/course/experience_points_records_ability_component.rb', line 5

def define_permissions
  allow_manage_experience_points_records if course_user&.teaching_staff?
  allow_read_course_experience_points_records if course_user&.observer?
  allow_read_own_experience_points_records if user

  super
end