diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index ee3d7c5..86c0ac8 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -812,6 +812,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
812 | // ok, client wants us to use an explicit UUID | 812 | // ok, client wants us to use an explicit UUID |
813 | // regardless of what the avatar name provided | 813 | // regardless of what the avatar name provided |
814 | userID = new UUID((string) requestData["estate_owner_uuid"]); | 814 | userID = new UUID((string) requestData["estate_owner_uuid"]); |
815 | |||
816 | // Check that the specified user exists | ||
817 | Scene currentOrFirst = m_application.SceneManager.CurrentOrFirstScene; | ||
818 | IUserAccountService accountService = currentOrFirst.UserAccountService; | ||
819 | UserAccount user = accountService.GetUserAccount(currentOrFirst.RegionInfo.ScopeID, userID); | ||
820 | |||
821 | if (user == null) | ||
822 | throw new Exception("Specified user was not found."); | ||
815 | } | 823 | } |
816 | else if (requestData.ContainsKey("estate_owner_first") & requestData.ContainsKey("estate_owner_last")) | 824 | else if (requestData.ContainsKey("estate_owner_first") & requestData.ContainsKey("estate_owner_last")) |
817 | { | 825 | { |
@@ -823,6 +831,11 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
823 | IUserAccountService accountService = currentOrFirst.UserAccountService; | 831 | IUserAccountService accountService = currentOrFirst.UserAccountService; |
824 | UserAccount user = accountService.GetUserAccount(currentOrFirst.RegionInfo.ScopeID, | 832 | UserAccount user = accountService.GetUserAccount(currentOrFirst.RegionInfo.ScopeID, |
825 | ownerFirst, ownerLast); | 833 | ownerFirst, ownerLast); |
834 | |||
835 | // Check that the specified user exists | ||
836 | if (user == null) | ||
837 | throw new Exception("Specified user was not found."); | ||
838 | |||
826 | userID = user.PrincipalID; | 839 | userID = user.PrincipalID; |
827 | } | 840 | } |
828 | else | 841 | else |