diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-08-13 01:31:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-13 01:31:42 +0200 |
| commit | e33901b9f5f65eb8e48c018a30a37094ad874897 (patch) | |
| tree | 679f8fe5926fef2f518567df049703a4092b4acc /Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | |
| parent | f83a5bb08eeb503b1ff40507b966af1b266fbaa7 (diff) | |
| parent | e5a29824e5126bead4194fff3e9f7d95133c9fb7 (diff) | |
Merge pull request #6267 from Bond-009/minor15
Minor fixes
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs index 488614609..b2625a68c 100644 --- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs @@ -141,7 +141,7 @@ namespace Emby.Server.Implementations.HttpServer.Security } // Temporary. TODO - allow clients to specify that the token has been shared with a casting device - var allowTokenInfoUpdate = authInfo.Client == null || authInfo.Client.IndexOf("chromecast", StringComparison.OrdinalIgnoreCase) == -1; + var allowTokenInfoUpdate = authInfo.Client == null || !authInfo.Client.Contains("chromecast", StringComparison.OrdinalIgnoreCase); if (string.IsNullOrWhiteSpace(authInfo.Device)) { |
