Fix safe links with wrong access rights

pull/1/head
yflory 2020-10-29 14:44:14 +01:00
parent 63502abce8
commit 83b318f156
1 changed files with 2 additions and 1 deletions

View File

@ -317,10 +317,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);
}));