diff --git a/app/routes/courses.rb b/app/routes/courses.rb index ef47241c..72f6beb6 100644 --- a/app/routes/courses.rb +++ b/app/routes/courses.rb @@ -100,7 +100,7 @@ def guide_progress_report_projection end post '/courses/:course/invitation' do - authorize! :teacher + authorize! :janitor course = Course.find_by! with_organization slug: course_slug {invitation: course.invitation_link!(json_body[:expiration_date])} end