mirror of
https://github.com/bitwarden/server.git
synced 2025-03-11 13:19:40 +01:00
[PM-12273] Integration page (#5119)
* add feature flag * add rest endpoint to get plan type for organization
This commit is contained in:
parent
9e860104f2
commit
9c8f932149
@ -540,4 +540,17 @@ public class OrganizationsController : Controller
|
||||
await _organizationService.UpdateAsync(model.ToOrganization(organization, _featureService), eventType: EventType.Organization_CollectionManagement_Updated);
|
||||
return new OrganizationResponseModel(organization);
|
||||
}
|
||||
|
||||
[HttpGet("{id}/plan-type")]
|
||||
public async Task<PlanType> GetPlanType(string id)
|
||||
{
|
||||
var orgIdGuid = new Guid(id);
|
||||
var organization = await _organizationRepository.GetByIdAsync(orgIdGuid);
|
||||
if (organization == null)
|
||||
{
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
return organization.PlanType;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user