aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-16 00:24:33 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-16 00:24:33 -0500
commitef490818d7246aec127bfb7722c23c2103f4bf5f (patch)
tree129cc9922c48809e9da619fadd71c1d3c74a6b69
parent7c6ebe9b218040ed55e07f9c287a1925a4e7a97a (diff)
update dlna default user
-rw-r--r--Emby.Dlna/ContentDirectory/ContentDirectory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Dlna/ContentDirectory/ContentDirectory.cs b/Emby.Dlna/ContentDirectory/ContentDirectory.cs
index d9da7c81b..4a36a16eb 100644
--- a/Emby.Dlna/ContentDirectory/ContentDirectory.cs
+++ b/Emby.Dlna/ContentDirectory/ContentDirectory.cs
@@ -126,7 +126,8 @@ namespace Emby.Dlna.ContentDirectory
}
// No configuration so it's going to be pretty arbitrary
- return _userManager.Users.First();
+ return _userManager.Users.FirstOrDefault(i => i.Policy.IsAdministrator) ??
+ _userManager.Users.First();
}
public void Dispose()