mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-11 14:45:59 +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
|
end
|
||||||
|
|
||||||
def duplicate_action
|
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,
|
name: :duplicate,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue