1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

Add feature flags constants and flag new route

This commit is contained in:
Thomas Rittson
2023-10-02 08:27:24 +10:00
parent fbb7aa1350
commit f7d05e2ffa
2 changed files with 3 additions and 0 deletions

View File

@ -765,6 +765,7 @@ public class OrganizationsController : Controller
}
[HttpPut("{id}/collection-management")]
[RequireFeature(FeatureFlagKeys.CollectionManagement)]
public async Task<OrganizationResponseModel> PutCollectionManagement(Guid id, [FromBody] OrganizationCollectionManagementUpdateRequestModel model)
{
var organization = await _organizationRepository.GetByIdAsync(id);

View File

@ -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<string> GetAllKeys()
{