]> source.dussan.org Git - nextcloud-server.git/commitdiff
Filter out share owner in sharee suggestion list
authorRoeland Jago Douma <rullzer@owncloud.com>
Wed, 23 Dec 2015 09:38:53 +0000 (10:38 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Wed, 30 Dec 2015 07:58:04 +0000 (08:58 +0100)
core/js/sharedialogview.js

index b8d07bad992330327c09865db2b2919ad8c4c7d8..c89c1d95be965c1fc9aee77b525d1bfc4d2e833b 100644 (file)
                                                }
 
                                                // Filter out the owner of the share
+                                               if (view.model.hasReshare()) {
+                                                       usersLength = users.length;
+                                                       for (i = 0 ; i < usersLength; i++) {
+                                                               if (users[i].value.shareWith === view.model.getReshareOwner()) {
+                                                                       users.splice(i, 1);
+                                                                       break;
+                                                               }
+                                                       }
+                                               }
 
                                                var shares = view.model.get('shares');
                                                var sharesLength = shares.length;