aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 {