diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-18 21:45:12 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-18 21:45:12 -0500 |
| commit | dc8c24ed2905934e1d715d8a36b05f01807371f3 (patch) | |
| tree | 19df8bc97e70e5559e51e3bb4fdf43fd264b947e /MediaBrowser.Server.Implementations/Connect/ConnectManager.cs | |
| parent | 124754a04f1a85fc949e229e45bfd67e5ac6ff62 (diff) | |
get channel media info at runtime
Diffstat (limited to 'MediaBrowser.Server.Implementations/Connect/ConnectManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Connect/ConnectManager.cs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs index f0d3b76e5..cff49df10 100644 --- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs +++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs @@ -453,6 +453,14 @@ namespace MediaBrowser.Server.Implementations.Connect throw new ArgumentNullException("ConnectServerId"); } + var sendingUser = GetUser(sendingUserId); + var requesterUserName = sendingUser.ConnectUserName; + + if (string.IsNullOrWhiteSpace(requesterUserName)) + { + throw new ArgumentException("A Connect account is required in order to send invitations."); + } + string connectUserId = null; var result = new UserLinkResult(); @@ -482,14 +490,6 @@ namespace MediaBrowser.Server.Implementations.Connect } } - var sendingUser = GetUser(sendingUserId); - var requesterUserName = sendingUser.ConnectUserName; - - if (string.IsNullOrWhiteSpace(requesterUserName)) - { - requesterUserName = sendingUser.Name; - } - if (string.IsNullOrWhiteSpace(connectUserId)) { return await SendNewUserInvitation(requesterUserName, connectUsername).ConfigureAwait(false); @@ -781,6 +781,7 @@ namespace MediaBrowser.Server.Implementations.Connect user.Configuration.EnableLiveTvManagement = false; user.Configuration.EnableContentDeletion = false; user.Configuration.EnableRemoteControlOfOtherUsers = false; + user.Configuration.EnableSharedDeviceControl = false; user.Configuration.IsAdministrator = false; if (currentPendingEntry != null) |
