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,