From 06dcdd7d1364efa80223f679b6f2a89832fdfc49 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 15 Feb 2024 00:42:07 +1000 Subject: [PATCH] Fix Flexible Collections block in Public API (#3800) Only throw if collection.Manage is true --- .../Models/Request/AssociationWithPermissionsRequestModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/AdminConsole/Public/Models/Request/AssociationWithPermissionsRequestModel.cs b/src/Api/AdminConsole/Public/Models/Request/AssociationWithPermissionsRequestModel.cs index b54fe60b2..acd685584 100644 --- a/src/Api/AdminConsole/Public/Models/Request/AssociationWithPermissionsRequestModel.cs +++ b/src/Api/AdminConsole/Public/Models/Request/AssociationWithPermissionsRequestModel.cs @@ -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.");