mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-30 20:38:27 +01:00
add user permissions for managing tv recordings
This commit is contained in:
@@ -81,6 +81,14 @@ namespace MediaBrowser.Api
|
||||
return GetAuthorization(auth);
|
||||
}
|
||||
|
||||
public static User GetCurrentUser(IRequest httpReq, IUserManager userManager)
|
||||
{
|
||||
var info = GetAuthorization(httpReq);
|
||||
|
||||
return string.IsNullOrEmpty(info.UserId) ? null :
|
||||
userManager.GetUserById(new Guid(info.UserId));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the authorization.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user