File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Altinn.Notifications/Controllers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace Altinn.Notifications.Controllers;
20
20
/// </summary>
21
21
[ Route ( "notifications/api/v1/orders/email" ) ]
22
22
[ ApiController ]
23
- /// [Authorize(Policy = AuthorizationConstants.POLICY_CREATE_SCOPE_OR_PLATFORM_ACCESS)]
23
+ [ Authorize ( Policy = AuthorizationConstants . POLICY_CREATE_SCOPE_OR_PLATFORM_ACCESS ) ]
24
24
[ SwaggerResponse ( 401 , "Caller is unauthorized" ) ]
25
25
[ SwaggerResponse ( 403 , "Caller is not authorized to access the requested resource" ) ]
26
26
@@ -61,7 +61,7 @@ public async Task<ActionResult<NotificationOrderRequestResponseExt>> Post(EmailN
61
61
return ValidationProblem ( ModelState ) ;
62
62
}
63
63
64
- string ? creator = "ttd" ; // HttpContext.GetOrg();
64
+ string ? creator = HttpContext . GetOrg ( ) ;
65
65
66
66
if ( creator == null )
67
67
{
You can’t perform that action at this time.
0 commit comments