aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-19 22:02:14 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-19 22:03:57 -0500
commitb959b7d44792d7624a50b577ae14c8c83666f6ca (patch)
treef6f2eef1759f31de401296b6078b08f9e42a4b77 /MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs
parenta5d54256ffb79dd1d0a06df0536f772bbeff9d3d (diff)
add back api keys
Diffstat (limited to 'MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs b/MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs
index df7cc47f4..b36db51b3 100644
--- a/MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs
+++ b/MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs
@@ -185,6 +185,18 @@ namespace MediaBrowser.Server.Implementations.Security
cmd.Parameters.Add(cmd, "@IsActive", DbType.Boolean).Value = query.IsActive.Value;
}
+ if (query.HasUser.HasValue)
+ {
+ if (query.HasUser.Value)
+ {
+ whereClauses.Add("UserId not null");
+ }
+ else
+ {
+ whereClauses.Add("UserId is null");
+ }
+ }
+
var whereTextWithoutPaging = whereClauses.Count == 0 ?
string.Empty :
" where " + string.Join(" AND ", whereClauses.ToArray());