The Free Software Media System - Server Backend & API
fix: require current password when admin changes their own password (#9238)
Claus Viume79f5d8226a0
diff --git a/Jellyfin.Api/Controllers/UserController.cs b/Jellyfin.Api/Controllers/UserController.csindex 568224a424..06f2227b83 100644--- a/Jellyfin.Api/Controllers/UserController.cs+++ b/Jellyfin.Api/Controllers/UserController.cs@@ -277,7 +277,7 @@ namespace Jellyfin.Api.Controllers}else{- if (!User.IsInRole(UserRoles.Administrator))+ if (!User.IsInRole(UserRoles.Administrator) || User.GetUserId().Equals(userId)){var success = await _userManager.AuthenticateUser(user.Username,