From 8eaf197b5b00db83809da321c98c1bc9ac59e6e8 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 24 Feb 2020 16:40:23 +0100 Subject: [PATCH] Disable 'make a copy' for spreadsheets in the drive --- www/common/drive-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 01d9911e4..643638abd 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1184,7 +1184,7 @@ define([ if (!metadata || !Util.isPlainTextFile(metadata.fileType, metadata.title)) { hide.push('openincode'); } - if (!metadata.channel || metadata.channel.length > 32) { + if (!metadata.channel || metadata.channel.length > 32 || metadata.rtChannel) { hide.push('makeacopy'); // Not for blobs } } else if ($element.is('.cp-app-drive-element-sharedf')) {