update dlna default user

This commit is contained in:
Luke Pulverenti 2016-12-16 00:24:33 -05:00
parent 7c6ebe9b21
commit ef490818d7

View File

@ -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()