ssb: The identity app now lets you switch out the server identity if you are an administrator.

This commit is contained in:
2024-10-13 14:40:14 -04:00
parent 3743543ef8
commit 0e7d2a8b0e
5 changed files with 138 additions and 8 deletions

View File

@ -692,6 +692,18 @@ async function getProcessBlob(blobId, key, options) {
);
}
};
imports.ssb.swapWithServerIdentity = function (id) {
if (
process.credentials &&
process.credentials.session &&
process.credentials.session.name
) {
return ssb.swapWithServerIdentity(
process.credentials.session.name,
id
);
}
};
imports.ssb.addEventListener = undefined;
imports.ssb.removeEventListener = undefined;
imports.ssb.getIdentityInfo = undefined;