Skip to content

Commit 1d73fa2

Browse files
committed
reinstated authorization in controller
1 parent 6988b98 commit 1d73fa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Altinn.Notifications/Controllers/EmailNotificationOrdersController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Altinn.Notifications.Controllers;
2020
/// </summary>
2121
[Route("notifications/api/v1/orders/email")]
2222
[ApiController]
23-
/// [Authorize(Policy = AuthorizationConstants.POLICY_CREATE_SCOPE_OR_PLATFORM_ACCESS)]
23+
[Authorize(Policy = AuthorizationConstants.POLICY_CREATE_SCOPE_OR_PLATFORM_ACCESS)]
2424
[SwaggerResponse(401, "Caller is unauthorized")]
2525
[SwaggerResponse(403, "Caller is not authorized to access the requested resource")]
2626

@@ -61,7 +61,7 @@ public async Task<ActionResult<NotificationOrderRequestResponseExt>> Post(EmailN
6161
return ValidationProblem(ModelState);
6262
}
6363

64-
string? creator = "ttd"; // HttpContext.GetOrg();
64+
string? creator = HttpContext.GetOrg();
6565

6666
if (creator == null)
6767
{

0 commit comments

Comments
 (0)