mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Show/hide duplicate button on team permission change in protocol template repository [SCI-8150] (#5190)
This commit is contained in:
parent
00191e41de
commit
2734c86ef5
1 changed files with 1 additions and 1 deletions
|
@ -899,7 +899,7 @@ class ProtocolsController < ApplicationController
|
|||
end
|
||||
|
||||
def permissions
|
||||
if stale?(@protocol)
|
||||
if stale?([@protocol, @protocol.team.user_assignments])
|
||||
render json: {
|
||||
copyable: can_clone_protocol_in_repository?(@protocol),
|
||||
archivable: can_archive_protocol_in_repository?(@protocol),
|
||||
|
|
Loading…
Reference in a new issue