Skip to content

Commit

Permalink
Merge pull request #3081 from dodona-edu/feature/change-default-cours…
Browse files Browse the repository at this point in the history
…e-permissions

Change default course permissions
  • Loading branch information
chvp authored Sep 9, 2021
2 parents fe08fc1 + 7f751ad commit 92d0759
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/controllers/courses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def new
name: @copy_options[:base].name,
description: @copy_options[:base].description,
institution: current_user.institution,
visibility: @copy_options[:base].visibility,
registration: @copy_options[:base].registration,
visibility: :visible_for_institution,
registration: :open_for_institution,
teacher: current_user.full_name
)
@copy_options = {
Expand All @@ -77,7 +77,9 @@ def new
@copy_options = nil
@course = Course.new(
teacher: current_user.full_name,
institution: current_user.institution
institution: current_user.institution,
visibility: :visible_for_institution,
registration: :open_for_institution
)
end

Expand Down

0 comments on commit 92d0759

Please sign in to comment.