diff --git a/src/Api/Controllers/OrganizationsController.cs b/src/Api/Controllers/OrganizationsController.cs index 3ef36330a9..6fb1d6efe9 100644 --- a/src/Api/Controllers/OrganizationsController.cs +++ b/src/Api/Controllers/OrganizationsController.cs @@ -773,6 +773,11 @@ public class OrganizationsController : Controller throw new NotFoundException(); } + if (!await _currentContext.OrganizationOwner(id)) + { + throw new NotFoundException(); + } + await _organizationService.UpdateAsync(model.ToOrganization(organization)); return new OrganizationResponseModel(organization); }