mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
org id check on edit collections
This commit is contained in:
parent
e0b9d84ad5
commit
ac9cf91002
@ -73,6 +73,9 @@ export class EditCommand {
|
|||||||
if (cipher == null) {
|
if (cipher == null) {
|
||||||
return Response.notFound();
|
return Response.notFound();
|
||||||
}
|
}
|
||||||
|
if (cipher.organizationId == null) {
|
||||||
|
return Response.error('Item does not belong to an organization. Consider sharing it first.');
|
||||||
|
}
|
||||||
|
|
||||||
cipher.collectionIds = req;
|
cipher.collectionIds = req;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user