mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-18 02:41:15 +02:00
throw error if trying to edit cipher with collection ids
This commit is contained in:
parent
bf48b45010
commit
b1ead78e34
@ -451,6 +451,9 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
}
|
||||
cipher.id = response.id;
|
||||
} else {
|
||||
if (collectionIds != null) {
|
||||
throw new Error('You cannot edit with collection ids.');
|
||||
}
|
||||
const request = new CipherRequest(cipher);
|
||||
response = await this.apiService.putCipher(cipher.id, request);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user