mirror of
https://github.com/bitwarden/browser
synced 2026-01-16 23:43:37 +00:00
set org id when encrypting new
This commit is contained in:
@@ -50,6 +50,13 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
protected encryptCipher() {
|
||||
if (!this.editMode) {
|
||||
this.cipher.organizationId = this.organization.id;
|
||||
}
|
||||
return super.encryptCipher();
|
||||
}
|
||||
|
||||
protected async saveCipher(cipher: Cipher) {
|
||||
if (this.organization.isAdmin) {
|
||||
const request = new CipherRequest(cipher);
|
||||
|
||||
Reference in New Issue
Block a user