diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-04 15:54:21 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-03-04 15:54:21 +0100 |
commit | 5be9acab84d8c0365d403f09b7c22a559ef40d2a (patch) | |
tree | 1e9a66e19820b082900f209d71868fdbd5b74862 /apps/federatedfilesharing/js | |
parent | 49c46493d1c4fab800bcb26e63bc979907cd20f7 (diff) | |
download | nextcloud-server-5be9acab84d8c0365d403f09b7c22a559ef40d2a.tar.gz nextcloud-server-5be9acab84d8c0365d403f09b7c22a559ef40d2a.zip |
Skip empty obsolete owner when adding to own NC
The owner field is nowadays always empty when adding a federated share
using "Add to your Nextcloud", so don't check for it.
Fixes an issue where "Add to your Nextcloud" doesn't add anything.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/federatedfilesharing/js')
-rw-r--r-- | apps/federatedfilesharing/js/external.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/js/external.js b/apps/federatedfilesharing/js/external.js index dd39bcde1e6..40bb935b5c5 100644 --- a/apps/federatedfilesharing/js/external.js +++ b/apps/federatedfilesharing/js/external.js @@ -99,7 +99,7 @@ var fileList = this.filesApp.fileList; var params = OC.Util.History.parseUrlQuery(); // manually add server-to-server share - if (params.remote && params.token && params.owner && params.name) { + if (params.remote && params.token && params.name) { var callbackAddShare = function(result, share) { var password = share.password || ''; |