From 3d3fa6e8713e663453aecd2027bce4bf6bc3c518 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 7 Sep 2022 11:01:53 +0200 Subject: [PATCH] Do not change team if inventory is shared with current one [SCI-7164] --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 0f02a41b4..18e78489b 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -46,7 +46,7 @@ class RepositoriesController < ApplicationController end def show - current_team_switch(@repository.team) + current_team_switch(@repository.team) unless @repository.shared_with?(current_team) @display_edit_button = can_create_repository_rows?(@repository) @display_delete_button = can_delete_repository_rows?(@repository) @display_duplicate_button = can_create_repository_rows?(@repository)