1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

Fix Flexible Collections block in Public API (#3800)

Only throw if collection.Manage is true
This commit is contained in:
Thomas Rittson 2024-02-15 00:42:07 +10:00 committed by GitHub
parent a07aa8330c
commit 06dcdd7d13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
if (!migratedToFlexibleCollections && Manage.HasValue)
if (!migratedToFlexibleCollections && Manage.GetValueOrDefault())
{
throw new BadRequestException(
"Your organization must be using the latest collection enhancements to use the Manage property.");