]> source.dussan.org Git - nextcloud-server.git/commitdiff
Skip empty obsolete owner when adding to own NC 25956/head
authorVincent Petry <vincent@nextcloud.com>
Thu, 4 Mar 2021 14:54:21 +0000 (15:54 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 5 Mar 2021 13:38:09 +0000 (13:38 +0000)
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>
apps/federatedfilesharing/js/external.js

index dd39bcde1e6e48728a0ad3060f68791946c92ab2..40bb935b5c54b73c795a864ddd4a65d1ff4fd4b1 100644 (file)
@@ -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 || '';