Fix safe links with wrong access rights

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

@ -317,10 +317,11 @@ define([
return void noPadData('NO_RESULT'); return void noPadData('NO_RESULT');
} }
// Data found but weaker? warn // Data found but weaker? warn
expire = res.expire;
if (edit && !res.href) { if (edit && !res.href) {
newHref = res.roHref; newHref = res.roHref;
return;
} }
expire = res.expire;
// We have good data, keep the hash in memory // We have good data, keep the hash in memory
newHref = edit ? res.href : (res.roHref || res.href); newHref = edit ? res.href : (res.roHref || res.href);
})); }));

Loading…
Cancel
Save