1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

[PM-17809] Fix org-owned ssh showing up in ssh list request (#13175)

* Fix org keys showing up in list request

* Change from tripleequal to double equal
This commit is contained in:
Bernd Schoolmann
2025-03-27 15:10:06 +01:00
committed by GitHub
parent 07245d790f
commit a80d289b1b

View File

@@ -143,7 +143,10 @@ export class SshAgentService implements OnDestroy {
if (isListRequest) {
const sshCiphers = ciphers.filter(
(cipher) => cipher.type === CipherType.SshKey && !cipher.isDeleted,
(cipher) =>
cipher.type === CipherType.SshKey &&
!cipher.isDeleted &&
cipher.organizationId == null,
);
const keys = sshCiphers.map((cipher) => {
return {
@@ -247,7 +250,7 @@ export class SshAgentService implements OnDestroy {
(cipher) =>
cipher.type === CipherType.SshKey &&
!cipher.isDeleted &&
cipher.organizationId === null,
cipher.organizationId == null,
);
const keys = sshCiphers.map((cipher) => {
return {