mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix: require current password when admin changes their own password (#9238)
Fixes https://github.com/jellyfin/jellyfin/issues/9208
This commit is contained in:
parent
29c1f54b57
commit
e79f5d8226
@ -277,7 +277,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!User.IsInRole(UserRoles.Administrator))
|
if (!User.IsInRole(UserRoles.Administrator) || User.GetUserId().Equals(userId))
|
||||||
{
|
{
|
||||||
var success = await _userManager.AuthenticateUser(
|
var success = await _userManager.AuthenticateUser(
|
||||||
user.Username,
|
user.Username,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user