From fc3c4874211ca37755f08a40e201efcfff845d5f Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 10 Sep 2019 11:23:00 +0200 Subject: [PATCH] Disable transfer ownership for shared folders and files --- www/common/common-ui-elements.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index fccef7ce2..3a9b0068f 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -406,7 +406,11 @@ define([ $d.append(UI.dialog.selectable(owners, { id: 'cp-app-prop-owners', })); - if (owned) { + var parsed; + if (data.href || data.roHref) { + parsed = Hash.parsePadUrl(data.href || data.roHref); + } + if (owned && data.roHref && parsed.type !== 'drive' && parsed.hashData.type === 'pad') { var manageOwners = h('button.no-margin', Messages.owner_openModalButton); $(manageOwners).click(function () { var modal = createOwnerModal(common, data); @@ -445,7 +449,6 @@ define([ $d.append(password); } - var parsed = Hash.parsePadUrl(data.href || data.roHref); if (!data.noEditPassword && owned && parsed.hashData.type === 'pad' && parsed.type !== "sheet") { // FIXME SHEET fix password change for sheets var sframeChan = common.getSframeChannel(); var changePwTitle = Messages.properties_changePassword; @@ -590,7 +593,7 @@ define([ id: 'cp-app-prop-size', })); - if (data.sharedFolder) { + if (data.sharedFolder && false) { $('