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:
parent
d6dcba7a60
commit
650c6670f2
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user