You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: forums_ability_component.rb
    path of file: ./repos/coursemology2/app/models/components/course
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Course::ForumsAbilit
    
  def define_all_forum_permissions
    allow_show_forums
    allow_show_topics if course_user.student?
    allow_create_topics
    allow_update_topics
    allow_reply_unlocked_topics
    allow_resolve_own_topics
  end