mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Disable duplicate repository for shared repository [SCI-10448]
This commit is contained in:
parent
758a0f295d
commit
1bdb6358f1
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