From 624650cc63caa323b62d8e63e433a09738e10b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remi=20L=C3=B8voll?= Date: Mon, 15 Jan 2024 15:44:21 +0100 Subject: [PATCH] Fixed authorization commented out --- src/Altinn.Profile/Controllers/UsersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Altinn.Profile/Controllers/UsersController.cs b/src/Altinn.Profile/Controllers/UsersController.cs index ef493e4..cfc5863 100644 --- a/src/Altinn.Profile/Controllers/UsersController.cs +++ b/src/Altinn.Profile/Controllers/UsersController.cs @@ -39,7 +39,7 @@ public UsersController(IUserProfiles userProfilesWrapper) /// The user id /// The information about a given user [HttpGet("{userID:int}")] - /// [Authorize(Policy = "PlatformAccess")] + [Authorize(Policy = "PlatformAccess")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] public async Task> Get(int userID)