From efe19a776edaaa8c366db2d207d00834dd6be87b Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 28 Aug 2024 11:42:30 +0200 Subject: [PATCH] Fix shared task assigned items [SCI-11007] --- app/controllers/my_module_shareable_links_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_module_shareable_links_controller.rb b/app/controllers/my_module_shareable_links_controller.rb index a94200217..225825ab0 100644 --- a/app/controllers/my_module_shareable_links_controller.rb +++ b/app/controllers/my_module_shareable_links_controller.rb @@ -153,7 +153,7 @@ class MyModuleShareableLinksController < ApplicationController end def load_repository - @repository = @my_module.assigned_repositories.viewable_by_user(current_user).find_by(id: params[:id]) + @repository = @my_module.assigned_repositories.find_by(id: params[:id]) render_404 unless @repository end