mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
localize plugin installation process
This commit is contained in:
@@ -7,6 +7,12 @@ namespace MediaBrowser.Controller.Net
|
||||
{
|
||||
public IAuthService AuthService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether or not to allow local unauthenticated access.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [allow local]; otherwise, <c>false</c>.</value>
|
||||
public bool AllowLocal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The request filter is executed before the service.
|
||||
/// </summary>
|
||||
@@ -15,7 +21,7 @@ namespace MediaBrowser.Controller.Net
|
||||
/// <param name="requestDto">The request DTO</param>
|
||||
public void RequestFilter(IRequest request, IResponse response, object requestDto)
|
||||
{
|
||||
AuthService.Authenticate(request, response, requestDto);
|
||||
AuthService.Authenticate(request, response, requestDto, AllowLocal);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -4,6 +4,6 @@ namespace MediaBrowser.Controller.Net
|
||||
{
|
||||
public interface IAuthService
|
||||
{
|
||||
void Authenticate(IRequest request, IResponse response, object requestDto);
|
||||
void Authenticate(IRequest request, IResponse response, object requestDto, bool allowLocal);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user