aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs5
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs6
2 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
index 52add23..4c43389 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
@@ -42,6 +42,7 @@ using OpenSim.Framework.Communications.Cache;
42using OpenSim.Region.CoreModules.World.Terrain; 42using OpenSim.Region.CoreModules.World.Terrain;
43using OpenSim.Region.Framework.Interfaces; 43using OpenSim.Region.Framework.Interfaces;
44using OpenSim.Region.Framework.Scenes; 44using OpenSim.Region.Framework.Scenes;
45using OpenSim.Services.Interfaces;
45 46
46namespace OpenSim.Region.CoreModules.World.Archiver 47namespace OpenSim.Region.CoreModules.World.Archiver
47{ 48{
@@ -292,8 +293,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver
292 { 293 {
293 if (!m_validUserUuids.ContainsKey(uuid)) 294 if (!m_validUserUuids.ContainsKey(uuid))
294 { 295 {
295 CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(uuid); 296 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, uuid);
296 if (profile != null && profile.UserProfile != null) 297 if (account != null)
297 m_validUserUuids.Add(uuid, true); 298 m_validUserUuids.Add(uuid, true);
298 else 299 else
299 m_validUserUuids.Add(uuid, false); 300 m_validUserUuids.Add(uuid, false);
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index ae3dc2e..aaebd00 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -491,10 +491,10 @@ namespace OpenSim.Region.CoreModules.World.Permissions
491 491
492 if (m_allowGridGods) 492 if (m_allowGridGods)
493 { 493 {
494 CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user); 494 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, user);
495 if (profile != null && profile.UserProfile != null) 495 if (account != null)
496 { 496 {
497 if (profile.UserProfile.GodLevel >= 200) 497 if (account.UserLevel >= 200)
498 return true; 498 return true;
499 } 499 }
500 } 500 }