mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
revise endpoint attributes
This commit is contained in:
@@ -22,8 +22,10 @@ namespace MediaBrowser.Controller.Net
|
||||
/// <param name="requestDto">The request DTO</param>
|
||||
public void RequestFilter(IRequest request, IResponse response, object requestDto)
|
||||
{
|
||||
var serviceRequest = new ServiceStackServiceRequest(request);
|
||||
|
||||
//This code is executed before the service
|
||||
var auth = AuthorizationContext.GetAuthorizationInfo(request);
|
||||
var auth = AuthorizationContext.GetAuthorizationInfo(serviceRequest);
|
||||
|
||||
if (auth != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user