mirror of
https://github.com/bitwarden/server.git
synced 2025-04-24 22:32:22 -05:00
Removed comments
This commit is contained in:
parent
7c0b7a4bb6
commit
86ebe599fa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user