summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-03-04 15:54:21 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-03-05 13:35:36 +0000
commit9f7973a70eb9afc0292b4ab8a0f4e84650463a03 (patch)
tree614db306662f6e97966d50e7e01609b88aa7f141
parentd81954f9131732d9930f68acc417a2395d94d1c1 (diff)
downloadnextcloud-server-9f7973a70eb9afc0292b4ab8a0f4e84650463a03.tar.gz
nextcloud-server-9f7973a70eb9afc0292b4ab8a0f4e84650463a03.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>
-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 || '';