Module: Course::DiscussionsAbilityComponent

Includes:
AbilityHost::Component
Defined in:
app/models/components/course/discussions_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
# File 'app/models/components/course/discussions_ability_component.rb', line 5

def define_permissions
  if user
    allow_course_users_show_topics
    allow_course_users_mark_topics_as_read
    allow_course_teaching_staff_manage_discussion_topics
    allow_course_users_create_posts
    allow_course_users_reply_and_vote_posts
    allow_course_teaching_staff_manage_posts
    allow_course_users_update_delete_own_post
  end

  super
end