mirror of
https://github.com/bitwarden/server.git
synced 2025-02-18 02:11:22 +01:00
Fix Flexible Collections block in Public API (#3800)
Only throw if collection.Manage is true
This commit is contained in:
parent
a07aa8330c
commit
06dcdd7d13
@ -16,7 +16,7 @@ public class AssociationWithPermissionsRequestModel : AssociationWithPermissions
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Throws if the org has not migrated to use FC but has passed in a Manage value in the request
|
// Throws if the org has not migrated to use FC but has passed in a Manage value in the request
|
||||||
if (!migratedToFlexibleCollections && Manage.HasValue)
|
if (!migratedToFlexibleCollections && Manage.GetValueOrDefault())
|
||||||
{
|
{
|
||||||
throw new BadRequestException(
|
throw new BadRequestException(
|
||||||
"Your organization must be using the latest collection enhancements to use the Manage property.");
|
"Your organization must be using the latest collection enhancements to use the Manage property.");
|
||||||
|
Loading…
Reference in New Issue
Block a user