Module: Course::DuplicationAbilityComponent

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

Instance Method Summary collapse

Instance Method Details

#define_permissionsObject


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

def define_permissions
  if user
    disallow_superusers_duplicate_via_frontend
    allow_managers_duplicate_to_course
    allow_managers_duplicate_from_course
    allow_observers_duplicate_from_course
  end

  super
end