Skip to content

Commit

Permalink
fix Bug 65478
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Dec 12, 2023
1 parent 5dbccca commit 04a1034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion products/ASC.People/Server/Api/UserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ public async Task<EmployeeFullDto> UpdateMemberCulture(string userid, UpdateMemb
{
var user = await GetUserInfoAsync(userid);

if (_userManager.IsSystemUser(user.Id))
if (_userManager.IsSystemUser(user.Id) || !Equals(user.Id, _securityContext.CurrentAccount.ID))
{
throw new SecurityException();
}
Expand Down

0 comments on commit 04a1034

Please sign in to comment.