diff options
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) |
