From 1bdb6358f1ad0aa5b01b1d1c078b21b21cb36443 Mon Sep 17 00:00:00 2001 From: Andrej Date: Mon, 17 Jun 2024 14:29:31 +0200 Subject: [PATCH] Disable duplicate repository for shared repository [SCI-10448] --- app/services/toolbars/repositories_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/toolbars/repositories_service.rb b/app/services/toolbars/repositories_service.rb index 3989ac1dc..fc6d48809 100644 --- a/app/services/toolbars/repositories_service.rb +++ b/app/services/toolbars/repositories_service.rb @@ -42,7 +42,7 @@ module Toolbars end def duplicate_action - return unless @single && can_create_repositories?(@current_team) + return unless @single && can_create_repositories?(@current_team) && !@repository.shared_with?(@current_team) { name: :duplicate,