1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00

throw error if trying to edit cipher with collection ids

This commit is contained in:
Kyle Spearrin 2018-10-19 09:15:42 -04:00
parent bf48b45010
commit b1ead78e34

View File

@ -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);
}