diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-04 15:54:21 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-03-05 13:35:36 +0000 |
commit | 9f7973a70eb9afc0292b4ab8a0f4e84650463a03 (patch) | |
tree | 614db306662f6e97966d50e7e01609b88aa7f141 | |
parent | d81954f9131732d9930f68acc417a2395d94d1c1 (diff) | |
download | nextcloud-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.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 || ''; |