mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
sync updates
This commit is contained in:
@@ -73,6 +73,17 @@ namespace MediaBrowser.Api
|
||||
return ResultFactory.GetOptimizedResultUsingCache(Request, cacheKey, lastDateModified, cacheDuration, factoryFn);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Infers the server address from the url
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected string GetServerAddress()
|
||||
{
|
||||
var index = Request.AbsoluteUri.IndexOf(Request.PathInfo, StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
return Request.AbsoluteUri.Substring(0, index);
|
||||
}
|
||||
|
||||
protected void AssertCanUpdateUser(IUserManager userManager, string userId)
|
||||
{
|
||||
var auth = AuthorizationContext.GetAuthorizationInfo(Request);
|
||||
|
||||
Reference in New Issue
Block a user