From 1301ec93519a39fa88c2eca1e679b20dbb560975 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 10 Feb 2016 16:00:55 +0100 Subject: Only show link shares for the current user Currently we have no way to display multiple links in the UI. So just display the link share for the current user. Fixes #22275 --- core/js/shareitemmodel.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/js/shareitemmodel.js') diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index a7764dd6266..a28bcac91cb 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -46,6 +46,7 @@ * @property {string} mail_send * @property {Date} expiration optional? * @property {number} stime optional? + * @property {string} uid_owner */ /** @@ -725,6 +726,14 @@ || share.item_source === this.get('itemSource')); if (isShareLink) { + /* + * Ignore reshared link shares for now + * FIXME: Find a way to display properly + */ + if (share.uid_owner !== OC.currentUser) { + return share; + } + var link = window.location.protocol + '//' + window.location.host; if (!share.token) { // pre-token link -- cgit v1.2.3