|
|
@ -992,8 +992,10 @@ define([
|
|
|
|
// Also stop for shared folders
|
|
|
|
// Also stop for shared folders
|
|
|
|
if (parsed.hashData.type !== 'pad' || parsed.type === 'drive') { return h('div', content); }
|
|
|
|
if (parsed.hashData.type !== 'pad' || parsed.type === 'drive') { return h('div', content); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var owned = Modal.isOwned(Env, data);
|
|
|
|
|
|
|
|
|
|
|
|
// Request edit access
|
|
|
|
// Request edit access
|
|
|
|
if (common.isLoggedIn() && ((data.roHref && !data.href) || data.fakeHref)) {
|
|
|
|
if (common.isLoggedIn() && ((data.roHref && !data.href) || data.fakeHref) && !owned) {
|
|
|
|
var requestButton = h('button.btn.btn-secondary.no-margin.cp-access-margin-right',
|
|
|
|
var requestButton = h('button.btn.btn-secondary.no-margin.cp-access-margin-right',
|
|
|
|
Messages.requestEdit_button);
|
|
|
|
Messages.requestEdit_button);
|
|
|
|
var requestBlock = h('p', requestButton);
|
|
|
|
var requestBlock = h('p', requestButton);
|
|
|
@ -1028,7 +1030,6 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
// Mute access requests
|
|
|
|
// Mute access requests
|
|
|
|
var edPublic = priv.edPublic;
|
|
|
|
var edPublic = priv.edPublic;
|
|
|
|
var owned = Modal.isOwned(Env, data);
|
|
|
|
|
|
|
|
var canMute = data.mailbox && owned === true && (
|
|
|
|
var canMute = data.mailbox && owned === true && (
|
|
|
|
(typeof (data.mailbox) === "string" && data.owners[0] === edPublic) ||
|
|
|
|
(typeof (data.mailbox) === "string" && data.owners[0] === edPublic) ||
|
|
|
|
data.mailbox[edPublic]);
|
|
|
|
data.mailbox[edPublic]);
|
|
|
|