Disable 'make a copy' for spreadsheets in the drive
This commit is contained in:
parent
99f04c3d6f
commit
8eaf197b5b
@ -1184,7 +1184,7 @@ define([
|
|||||||
if (!metadata || !Util.isPlainTextFile(metadata.fileType, metadata.title)) {
|
if (!metadata || !Util.isPlainTextFile(metadata.fileType, metadata.title)) {
|
||||||
hide.push('openincode');
|
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
|
hide.push('makeacopy'); // Not for blobs
|
||||||
}
|
}
|
||||||
} else if ($element.is('.cp-app-drive-element-sharedf')) {
|
} else if ($element.is('.cp-app-drive-element-sharedf')) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user