aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/RemoteController
diff options
context:
space:
mode:
authorTom2011-09-14 19:11:32 -0700
committerTom2011-09-14 19:11:32 -0700
commit5484c9b585a2a6289456e9492ac2989d489b555c (patch)
treec9b79199722fe09c993c237dce40febf731264e3 /OpenSim/ApplicationPlugins/RemoteController
parentMerge fixes, and fix the build (diff)
parentDon't try and delete attachments for child agent close (diff)
downloadopensim-SC-5484c9b585a2a6289456e9492ac2989d489b555c.zip
opensim-SC-5484c9b585a2a6289456e9492ac2989d489b555c.tar.gz
opensim-SC-5484c9b585a2a6289456e9492ac2989d489b555c.tar.bz2
opensim-SC-5484c9b585a2a6289456e9492ac2989d489b555c.tar.xz
Bring us up to date.
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs13
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