From c7de57158aa630fe62f430c247ad277baba49e5a Mon Sep 17 00:00:00 2001 From: Andrew Cain Date: Tue, 17 Oct 2023 22:29:46 +1100 Subject: [PATCH] fix: get tii user details for viewer url --- app/models/turn_it_in/tii_action_get_view_url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/turn_it_in/tii_action_get_view_url.rb b/app/models/turn_it_in/tii_action_get_view_url.rb index 8bf518c49..a0e6b215d 100644 --- a/app/models/turn_it_in/tii_action_get_view_url.rb +++ b/app/models/turn_it_in/tii_action_get_view_url.rb @@ -20,7 +20,7 @@ def run def fetch_view_url exec_tca_call 'fetch view url' do data = TCAClient::SimilarityViewerUrlSettings.new( - viewer_user_id: params[:viewer_tii_id], + viewer_user_id: params['viewer_tii_id'] || params[:viewer_tii_id], locale: 'en-US', viewer_default_permission_set: "INSTRUCTOR" )