Module: Course::CourseAbilityComponent

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

Instance Method Summary collapse

Instance Method Details

#define_permissionsObject


5
6
7
8
9
10
11
12
13
14
15
# File 'app/models/components/course/course_ability_component.rb', line 5

def define_permissions
  if user
    allow_instructors_create_courses
    allow_unregistered_users_registering_courses
    allow_registered_users_showing_course
    allow_staff_manage_users
    allow_owners_managing_course
  end

  super
end