diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index eccd21c9248862a95b641360be333e26ec70e965..dd950e9b42b3a4c088a01dc74f22957410459ad6 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -19,6 +19,10 @@ OCA.Files.FileList.prototype._createRow = function(fileData) { var tr = oldCreateRow.apply(this, arguments); var sharePermissions = fileData.permissions; + if (fileData.mountType && fileData.mountType === "external-root"){ + // for external storages we cant use the permissions of the mountpoint + sharePermissions = OC.PERMISSION_ALL; + } if (fileData.type === 'file') { // files can't be shared with delete permissions sharePermissions = sharePermissions & ~OC.PERMISSION_DELETE;