diff --git a/backend/src/Equinor.ProjectExecutionPortal.WebApi/Controllers/PortalController.cs b/backend/src/Equinor.ProjectExecutionPortal.WebApi/Controllers/PortalController.cs index 0cfa93a7..3ecaf8d7 100644 --- a/backend/src/Equinor.ProjectExecutionPortal.WebApi/Controllers/PortalController.cs +++ b/backend/src/Equinor.ProjectExecutionPortal.WebApi/Controllers/PortalController.cs @@ -96,7 +96,7 @@ public async Task> UpdatePortal([FromRoute] Guid portalId, [F { #region Authorization - var authResult = await AuthorizeCanModifyPortal(portalId); + var authResult = await AuthorizeCanManagePortal(portalId); if (authResult.Unauthorized) { @@ -147,7 +147,7 @@ public async Task> UpdatePortalConfiguration([FromRoute] Guid { #region Authorization - var authResult = await AuthorizeCanModifyPortal(portalId); + var authResult = await AuthorizeCanManagePortal(portalId); if (authResult.Unauthorized) { @@ -290,7 +290,7 @@ public async Task> AddAppToPortal([FromRoute] Guid portalId, { #region Authorization - var authResult = await AuthorizeCanModifyPortal(portalId); + var authResult = await AuthorizeCanManagePortal(portalId); if (authResult.Unauthorized) { @@ -331,7 +331,7 @@ public async Task> AddAppToPortal([FromRoute] Guid portalId, { #region Authorization - var authResult = await AuthorizeCanModifyPortal(portalId); + var authResult = await AuthorizeCanManagePortal(portalId); if (authResult.Unauthorized) { @@ -374,7 +374,7 @@ public async Task RemoveAppFromPortal([FromRoute] Guid portalId, [ { #region Authorization - var authResult = await AuthorizeCanModifyPortal(portalId); + var authResult = await AuthorizeCanManagePortal(portalId); if (authResult.Unauthorized) { @@ -420,7 +420,7 @@ public async Task> AddContextTypeToPortal([FromRoute] Guid po { #region Authorization - var authResult = await AuthorizeCanModifyPortal(portalId); + var authResult = await AuthorizeCanManagePortal(portalId); if (authResult.Unauthorized) { @@ -462,7 +462,7 @@ public async Task RemoveContextTypeFromPortal([FromRoute] Guid por { #region Authorization - var authResult = await AuthorizeCanModifyPortal(portalId); + var authResult = await AuthorizeCanManagePortal(portalId); if (authResult.Unauthorized) { @@ -492,7 +492,7 @@ public async Task RemoveContextTypeFromPortal([FromRoute] Guid por return Ok(); } - private async Task AuthorizeCanModifyPortal(Guid portalId) + private async Task AuthorizeCanManagePortal(Guid portalId) { var authResult = await Request.RequireAuthorizationAsync(builder => {