Disable duplicate repository for shared repository [SCI-10448]

This commit is contained in:
Andrej 2024-06-17 14:29:31 +02:00
parent 758a0f295d
commit 1bdb6358f1

View file

@ -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,