mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-25 03:14:14 +03:00
[PR #930] [MERGED] checking user-permission in GetQueryResult #8570
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/930
Author: @fruhnow
Created: 2/18/2019
Status: ✅ Merged
Merged: 2/20/2019
Merged by: @JustAMan
Base:
master← Head:AuthorizationCheck📝 Commits (4)
967d5dechecking user-permission in GetQueryResult to prevent accessing the library without permission but having a link. (+added myself as contributor. forgot last time bout that)1d63154adressing pr commentsba003e0adressing pr comments53beebcswitching logging to serilog convention according to pr comments📊 Changes
2 files changed (+12 additions, -0 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
MediaBrowser.Api/UserLibrary/ItemsService.cs(+11 -0)📄 Description
When accessing
emby/Users/{UserId}/Itemsyou are able to access Libraries which you arent supposed to be able to access (ticked off in the AdminUI). There might be/are for sure other Endpoints which just blow out data without proper User-Authorization-Checks.Changes
I added a short User-Access-Validation in GetQueryResult. This leads to Issue #837 being fixed (the View just stays empty). Unsuccessful tries to access a library will be logged as a warning.
(added myself to the Contributors.md, which i forgot last time)
Issues
#837
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.