mirror of
https://github.com/bitwarden/cli
synced 2025-12-16 08:13:21 +00:00
org id check on edit collections
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user