@ -894,7 +894,7 @@ define([
if (parsed.hashData.type !== 'pad' || parsed.type === 'drive') { return h('div', content); }
// Request edit access
if (data.roHref && !data.href) {
if (common.isLoggedIn() && ((data.roHref && !data.href) || data.fakeHref)) {
var requestButton = h('button.btn.btn-secondary.no-margin.cp-access-margin-right',
Messages.requestEdit_button);
var requestBlock = h('p', requestButton);
@ -42,6 +42,7 @@ define([
// Access modal and the pad is not stored: we're not an owner
// so we don't need the correct href, just the type
var h = Hash.createRandomHash(priv.app, priv.password);
data.fakeHref = true;
data.href = base + priv.pathname + '#' + h;
} else {
waitFor.abort();