mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-29 20:24:47 +03:00
fixes #789 - Security Issue: API allows access to any folder of the PC running MediaBrowser
This commit is contained in:
@@ -470,7 +470,7 @@ namespace MediaBrowser.Api.Library
|
||||
{
|
||||
var item = _libraryManager.GetItemById(request.Id);
|
||||
|
||||
var session = GetSession(_sessionManager);
|
||||
var session = GetSession();
|
||||
|
||||
if (!session.UserId.HasValue || !_userManager.GetUserById(session.UserId.Value).Configuration.EnableContentDeletion)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user