aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-09-24 19:08:39 +0300
committerGitHub <noreply@github.com>2019-09-24 19:08:39 +0300
commitac9dfa8e93106d907bbf78fe2350adfa47c76cec (patch)
tree451a0af637b7114439b85ce7878ff82b43281cc8 /Emby.Server.Implementations/HttpServer/Security/AuthService.cs
parentb086f6d330503a055e1b073cdb3847c825839da3 (diff)
parentc9820d30edf1cb8fa99a52ec72b6571d6d4506f7 (diff)
Merge pull request #1775 from Bond-009/fixes
Fix multiple mistakes and warnings
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthService.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
index 3d3f67ca2..93a61fe67 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
@@ -51,7 +51,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
var user = auth.User;
- if (user == null & !auth.UserId.Equals(Guid.Empty))
+ if (user == null && auth.UserId != Guid.Empty)
{
throw new SecurityException("User with Id " + auth.UserId + " not found");
}