aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-01-20 13:40:51 -0500
committerLuke <luke.pulverenti@gmail.com>2016-01-20 13:40:51 -0500
commitf58503b28c2df00de7c3b00d0d80d01f13fa78f9 (patch)
treefef61add4b915adebb8aa1c3793289b69121f9f7 /MediaBrowser.Server.Implementations/Security/AuthenticationRepository.cs
parent236b5caee2797d4a8af857cea2f3859bc94d3948 (diff)
parent17680d59b6e2de318ab5e540e39f8c0c776114c0 (diff)
Merge pull request #1412 from MediaBrowser/beta
merge from beta
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());