lint compliance
This commit is contained in:
@@ -1628,11 +1628,11 @@ define([
|
|||||||
// data.send === true ==> send the request
|
// data.send === true ==> send the request
|
||||||
Store.requestPadAccess = function (clientId, data, cb) {
|
Store.requestPadAccess = function (clientId, data, cb) {
|
||||||
var owner = data.owner;
|
var owner = data.owner;
|
||||||
var owners = data.owners;
|
|
||||||
|
|
||||||
// If the owner was not is the pad metadata, check if it is a friend.
|
// If the owner was not is the pad metadata, check if it is a friend.
|
||||||
// We'll contact the first owner for whom we know the mailbox
|
// We'll contact the first owner for whom we know the mailbox
|
||||||
/* // XXX check mailbox in our contacts is not compatible with the new "mute pad" feature
|
/* // XXX check mailbox in our contacts is not compatible with the new "mute pad" feature
|
||||||
|
var owners = data.owners;
|
||||||
if (!owner && Array.isArray(owners)) {
|
if (!owner && Array.isArray(owners)) {
|
||||||
var friends = store.proxy.friends || {};
|
var friends = store.proxy.friends || {};
|
||||||
// If we have friends, check if an owner is one of them (with a mailbox)
|
// If we have friends, check if an owner is one of them (with a mailbox)
|
||||||
|
|||||||
@@ -1331,7 +1331,6 @@ define([
|
|||||||
// Get and maybe migrate the existing mailbox object
|
// Get and maybe migrate the existing mailbox object
|
||||||
var owners = metadata.owners;
|
var owners = metadata.owners;
|
||||||
if (!Array.isArray(owners) || owners.indexOf(edPublic) === -1) {
|
if (!Array.isArray(owners) || owners.indexOf(edPublic) === -1) {
|
||||||
waitFor.abort();
|
|
||||||
return void cb({ error: 'INSUFFICIENT_PERMISSIONS' });
|
return void cb({ error: 'INSUFFICIENT_PERMISSIONS' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user