aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthService.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-09-20 12:42:08 +0200
committerBond_009 <bond.009@outlook.com>2019-09-23 20:32:44 +0200
commitc9820d30edf1cb8fa99a52ec72b6571d6d4506f7 (patch)
tree9a479536e6d18d3a2e9a8d253c4d3846d3d2aceb /Emby.Server.Implementations/HttpServer/Security/AuthService.cs
parentb8fd6a7ec3e49298ffacc6da96d59ae03a593cd3 (diff)
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");
}