From f7d05e2ffa3e1e6c5c4a89b5a2cea31bd9104995 Mon Sep 17 00:00:00 2001 From: Thomas Rittson Date: Mon, 2 Oct 2023 08:27:24 +1000 Subject: [PATCH] Add feature flags constants and flag new route --- src/Api/Controllers/OrganizationsController.cs | 1 + src/Core/Constants.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Api/Controllers/OrganizationsController.cs b/src/Api/Controllers/OrganizationsController.cs index 6fb1d6efe9..59bef5cafc 100644 --- a/src/Api/Controllers/OrganizationsController.cs +++ b/src/Api/Controllers/OrganizationsController.cs @@ -765,6 +765,7 @@ public class OrganizationsController : Controller } [HttpPut("{id}/collection-management")] + [RequireFeature(FeatureFlagKeys.CollectionManagement)] public async Task PutCollectionManagement(Guid id, [FromBody] OrganizationCollectionManagementUpdateRequestModel model) { var organization = await _organizationRepository.GetByIdAsync(id); diff --git a/src/Core/Constants.cs b/src/Core/Constants.cs index 6de35a6657..fac1df85c9 100644 --- a/src/Core/Constants.cs +++ b/src/Core/Constants.cs @@ -40,6 +40,8 @@ public static class FeatureFlagKeys public const string TrustedDeviceEncryption = "trusted-device-encryption"; public const string AutofillV2 = "autofill-v2"; public const string BrowserFilelessImport = "browser-fileless-import"; + public const string CollectionManagement = "collection-management"; + public const string CanManageCollectionPermission = "can-manage-collection-permission"; public static List GetAllKeys() {