Merge branch 'staging' into sessionStorage
commit
4c966a8cb7
|
@ -1080,6 +1080,11 @@ define([
|
|||
if (data.teamId && s.id !== data.teamId) { 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);
|
||||
if (res.length) {
|
||||
sendTo.push(s.id);
|
||||
|
|
|
@ -349,10 +349,11 @@ define([
|
|||
return void noPadData('NO_RESULT');
|
||||
}
|
||||
// Data found but weaker? warn
|
||||
expire = res.expire;
|
||||
if (edit && !res.href) {
|
||||
newHref = res.roHref;
|
||||
return;
|
||||
}
|
||||
expire = res.expire;
|
||||
// We have good data, keep the hash in memory
|
||||
newHref = edit ? res.href : (res.roHref || res.href);
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue