From 86ebe599fa60b3aa1321a0f088faab73b4b1c11a Mon Sep 17 00:00:00 2001 From: Conner Turnbull Date: Tue, 15 Apr 2025 14:51:23 -0400 Subject: [PATCH] Removed comments --- .../SelfHosted/SelfHostedOrganizationSponsorshipsController.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Api/Controllers/SelfHosted/SelfHostedOrganizationSponsorshipsController.cs b/src/Api/Controllers/SelfHosted/SelfHostedOrganizationSponsorshipsController.cs index 6b4785fa3e..d2c87c6b6f 100644 --- a/src/Api/Controllers/SelfHosted/SelfHostedOrganizationSponsorshipsController.cs +++ b/src/Api/Controllers/SelfHosted/SelfHostedOrganizationSponsorshipsController.cs @@ -45,16 +45,13 @@ public class SelfHostedOrganizationSponsorshipsController : Controller [HttpPost("{sponsoringOrgId}/families-for-enterprise")] public async Task CreateSponsorship(Guid sponsoringOrgId, [FromBody] OrganizationSponsorshipCreateRequestModel model) { - // Check feature flag at controller level if (!_featureService.IsEnabled(Bit.Core.FeatureFlagKeys.PM17772_AdminInitiatedSponsorships)) { - // If flag is off and someone tries to use admin-initiated sponsorships, return 404 if (model.SponsoringUserId.HasValue) { throw new NotFoundException(); } - // If flag is off and notes field has a value, ignore it if (!string.IsNullOrWhiteSpace(model.Notes)) { model.Notes = null;