mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
fix user media permission
This commit is contained in:
parent
4ce43ce019
commit
6cfc103bd3
|
@ -98,17 +98,20 @@ namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
var auth = GetAuthorizationDictionary(httpReq);
|
var auth = GetAuthorizationDictionary(httpReq);
|
||||||
|
|
||||||
string userId;
|
string userId = null;
|
||||||
string deviceId;
|
string deviceId = null;
|
||||||
string device;
|
string device = null;
|
||||||
string client;
|
string client = null;
|
||||||
string version;
|
string version = null;
|
||||||
|
|
||||||
auth.TryGetValue("UserId", out userId);
|
if (auth != null)
|
||||||
auth.TryGetValue("DeviceId", out deviceId);
|
{
|
||||||
auth.TryGetValue("Device", out device);
|
auth.TryGetValue("UserId", out userId);
|
||||||
auth.TryGetValue("Client", out client);
|
auth.TryGetValue("DeviceId", out deviceId);
|
||||||
auth.TryGetValue("Version", out version);
|
auth.TryGetValue("Device", out device);
|
||||||
|
auth.TryGetValue("Client", out client);
|
||||||
|
auth.TryGetValue("Version", out version);
|
||||||
|
}
|
||||||
|
|
||||||
return new AuthorizationInfo
|
return new AuthorizationInfo
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue