Merge pull request #4415 from okriuchykhin/ok_SCI_7164

Do not change team if inventory is shared with current one [SCI-7164]
This commit is contained in:
Alex Kriuchykhin 2022-09-07 11:06:51 +02:00 committed by GitHub
commit c5f0fa3e7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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