From 650c6670f2065fd1c531f34760b813d6d94d9ca1 Mon Sep 17 00:00:00 2001 From: Jon Welfringer <7365166+W6HBR@users.noreply.github.com> Date: Sun, 31 Mar 2024 10:08:19 -0700 Subject: [PATCH] Fix incorrect parameter passed from ProfileService.cs to ProfileController.cs ProfileService was passing SiteId instead of ProfileId which was causing updates to profile entries to fail with "Unauthorized Profile Put Attempt". --- Oqtane.Client/Services/ProfileService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Client/Services/ProfileService.cs b/Oqtane.Client/Services/ProfileService.cs index 5f0f1080..700fb764 100644 --- a/Oqtane.Client/Services/ProfileService.cs +++ b/Oqtane.Client/Services/ProfileService.cs @@ -33,7 +33,7 @@ namespace Oqtane.Services public async Task UpdateProfileAsync(Profile profile) { - return await PutJsonAsync($"{Apiurl}/{profile.SiteId}", profile); + return await PutJsonAsync($"{Apiurl}/{profile.ProfileId}", profile); } public async Task DeleteProfileAsync(int profileId) {