Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-03-04 17:54:21 +0300
committerVincent Petry <vincent@nextcloud.com>2021-03-04 17:54:21 +0300
commit5be9acab84d8c0365d403f09b7c22a559ef40d2a (patch)
tree1e9a66e19820b082900f209d71868fdbd5b74862 /apps/federatedfilesharing/js
parent49c46493d1c4fab800bcb26e63bc979907cd20f7 (diff)
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.js2
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 || '';