Prompt to store edit link to your drive when you're a team viewer

pull/1/head
yflory 4 years ago
parent d844538758
commit 63502abce8

@ -1080,6 +1080,11 @@ define([
if (data.teamId && s.id !== data.teamId) { return; } if (data.teamId && s.id !== data.teamId) { return; }
if (storeLocally && s.id) { return; } if (storeLocally && s.id) { return; }
// If this is an edit link but we don't have edit rights, this entry is not useful
if (h.mode === "edit" && !s.secondaryKey) {
return;
}
var res = s.manager.findChannel(channel, true); var res = s.manager.findChannel(channel, true);
if (res.length) { if (res.length) {
sendTo.push(s.id); sendTo.push(s.id);

Loading…
Cancel
Save