@@ -61,8 +61,9 @@ window.assignManager = {
|
|||||||
this.area.get([siteStoreKey]).then((storageResponse) => {
|
this.area.get([siteStoreKey]).then((storageResponse) => {
|
||||||
if (storageResponse && siteStoreKey in storageResponse) {
|
if (storageResponse && siteStoreKey in storageResponse) {
|
||||||
resolve(storageResponse[siteStoreKey]);
|
resolve(storageResponse[siteStoreKey]);
|
||||||
}
|
} else {
|
||||||
resolve(null);
|
resolve(null);
|
||||||
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
reject(e);
|
reject(e);
|
||||||
});
|
});
|
||||||
@@ -638,7 +639,7 @@ window.assignManager = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async _maybeRemoveSiteIsolation(userContextId) {
|
async _maybeRemoveSiteIsolation(userContextId) {
|
||||||
const assignments = await this.storageArea.getByContainer(userContextId);
|
const assignments = await this.storageArea.getAssignedSites(userContextId);
|
||||||
const hasAssignments = assignments && Object.keys(assignments).length > 0;
|
const hasAssignments = assignments && Object.keys(assignments).length > 0;
|
||||||
if (hasAssignments) {
|
if (hasAssignments) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user