Module: Course::ForumsAbilityComponent

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

Instance Method Summary collapse

Instance Method Details

#define_permissionsObject


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/models/components/course/forums_ability_component.rb', line 5

def define_permissions
  if user
    allow_students_show_forums
    allow_students_show_topics
    allow_students_create_topics
    allow_students_update_topics
    allow_student_reply_unlocked_topics
    allow_student_resolve_own_topics
    allow_staff_show_all_topics
    allow_teaching_staff_manage_forums
    allow_teaching_staff_manage_topics
  end

  super
end