don't allow signing own user

This commit is contained in:
Bruno Windels 2023-03-02 17:14:05 +01:00
parent 4dce93e5ef
commit 20a6fcda72

View File

@ -135,6 +135,10 @@ export class CrossSigning {
return;
}
// need to be able to get the msk for the user
// can't sign own user
if (userId === this.ownUserId) {
return;
}
const keyToSign = await this.deviceTracker.getCrossSigningKeyForUser(userId, KeyUsage.Master, this.hsApi, log);
if (!keyToSign) {
return undefined;