diff options
author | Diva Canto | 2011-06-08 16:01:33 -0700 |
---|---|---|
committer | Diva Canto | 2011-06-08 16:01:33 -0700 |
commit | 80fc607d7536d4f375da4d01280a00fe656654c4 (patch) | |
tree | 0604dc00577818655490304c1bd92041a19a159f /OpenSim/Region/Framework | |
parent | Added EventManager.OnPrimsLoaded, an event that modules can hook up onto so t... (diff) | |
download | opensim-SC_OLD-80fc607d7536d4f375da4d01280a00fe656654c4.zip opensim-SC_OLD-80fc607d7536d4f375da4d01280a00fe656654c4.tar.gz opensim-SC_OLD-80fc607d7536d4f375da4d01280a00fe656654c4.tar.bz2 opensim-SC_OLD-80fc607d7536d4f375da4d01280a00fe656654c4.tar.xz |
Fixed "Unknown User" listed as creator/owner on prims created with the Build button by foreign visitors. Added command to the UserManagementModule to list all the known bindings between user UUIDs and their names: show user-names.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IUserManagement.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IUserManagement.cs b/OpenSim/Region/Framework/Interfaces/IUserManagement.cs index 9cac3b0..5d30aa8 100644 --- a/OpenSim/Region/Framework/Interfaces/IUserManagement.cs +++ b/OpenSim/Region/Framework/Interfaces/IUserManagement.cs | |||
@@ -9,6 +9,7 @@ namespace OpenSim.Region.Framework.Interfaces | |||
9 | { | 9 | { |
10 | string GetUserName(UUID uuid); | 10 | string GetUserName(UUID uuid); |
11 | string GetUserHomeURL(UUID uuid); | 11 | string GetUserHomeURL(UUID uuid); |
12 | string GetUserUUI(UUID uuid); | ||
12 | string GetUserServerURL(UUID uuid, string serverType); | 13 | string GetUserServerURL(UUID uuid, string serverType); |
13 | void AddUser(UUID uuid, string userData); | 14 | void AddUser(UUID uuid, string userData); |
14 | void AddUser(UUID uuid, string firstName, string lastName, string profileURL); | 15 | void AddUser(UUID uuid, string firstName, string lastName, string profileURL); |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index f122b58..bdf3d1d 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1910,6 +1910,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1910 | sceneObject.SetGroup(groupID, null); | 1910 | sceneObject.SetGroup(groupID, null); |
1911 | } | 1911 | } |
1912 | 1912 | ||
1913 | IUserManagement uman = RequestModuleInterface<IUserManagement>(); | ||
1914 | if (uman != null) | ||
1915 | sceneObject.RootPart.CreatorIdentification = uman.GetUserUUI(ownerID); | ||
1916 | |||
1913 | sceneObject.ScheduleGroupForFullUpdate(); | 1917 | sceneObject.ScheduleGroupForFullUpdate(); |
1914 | 1918 | ||
1915 | return sceneObject; | 1919 | return sceneObject; |