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".
This commit is contained in:
Jon Welfringer
2024-03-31 10:08:19 -07:00
committed by GitHub
parent d6dcba7a60
commit 650c6670f2

View File

@ -33,7 +33,7 @@ namespace Oqtane.Services
public async Task<Profile> UpdateProfileAsync(Profile profile)
{
return await PutJsonAsync<Profile>($"{Apiurl}/{profile.SiteId}", profile);
return await PutJsonAsync<Profile>($"{Apiurl}/{profile.ProfileId}", profile);
}
public async Task DeleteProfileAsync(int profileId)
{