aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorDiva Canto2010-01-10 10:40:07 -0800
committerDiva Canto2010-01-10 10:40:07 -0800
commit1e1b2ab221851efc414678b7ea52ef2ca788ce9f (patch)
tree29b6aa80e54a9c18529ae14e7d185fe67582d151 /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentAdd a "LockedOut" flag to allow locking a region out via the grid server. (diff)
downloadopensim-SC-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.zip
opensim-SC-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.tar.gz
opensim-SC-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.tar.bz2
opensim-SC-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.tar.xz
* OMG! All but one references to UserProfileCacheService have been rerouted!
* HG is seriously broken here * Compiles. Untested.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 385a9cd..97415f4 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -39,6 +39,7 @@ using OpenSim.Region.Framework.Scenes.Animation;
39using OpenSim.Region.Framework.Scenes.Types; 39using OpenSim.Region.Framework.Scenes.Types;
40using OpenSim.Region.Physics.Manager; 40using OpenSim.Region.Physics.Manager;
41using GridRegion = OpenSim.Services.Interfaces.GridRegion; 41using GridRegion = OpenSim.Services.Interfaces.GridRegion;
42using OpenSim.Services.Interfaces;
42 43
43namespace OpenSim.Region.Framework.Scenes 44namespace OpenSim.Region.Framework.Scenes
44{ 45{
@@ -2870,11 +2871,14 @@ namespace OpenSim.Region.Framework.Scenes
2870 // For now, assign god level 200 to anyone 2871 // For now, assign god level 200 to anyone
2871 // who is granted god powers, but has no god level set. 2872 // who is granted god powers, but has no god level set.
2872 // 2873 //
2873 CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(agentID); 2874 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, agentID);
2874 if (profile.UserProfile.GodLevel > 0) 2875 if (account != null)
2875 m_godlevel = profile.UserProfile.GodLevel; 2876 {
2876 else 2877 if (account.UserLevel > 0)
2877 m_godlevel = 200; 2878 m_godlevel = account.UserLevel;
2879 else
2880 m_godlevel = 200;
2881 }
2878 } 2882 }
2879 else 2883 else
2880 { 2884 {