mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
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:
commit
c5f0fa3e7f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue