mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 04:03:45 +08:00
Merge pull request #7647 from rekonder/aj_SCI_10448
Disable duplicate repository for shared repository [SCI-10448]
This commit is contained in:
commit
e92d5064f9
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue