From 26914c478aaaf184ed2a47420ae32277004a2101 Mon Sep 17 00:00:00 2001 From: Lucho Cannavo Date: Thu, 27 Aug 2020 12:56:38 -0300 Subject: [PATCH] Restricting invitations for janitor only --- app/routes/courses.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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