aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-15 23:29:34 +0000
committerMelanie Thielker2008-08-15 23:29:34 +0000
commit32f90a028f87aab6b6e43a4fca8fec2e4962f399 (patch)
tree1fc8ec4e00bd785c54a1b2272e45621a1332b142 /OpenSim
parentPlumb in the partner and the account title fields for profile info. (diff)
downloadopensim-SC-32f90a028f87aab6b6e43a4fca8fec2e4962f399.zip
opensim-SC-32f90a028f87aab6b6e43a4fca8fec2e4962f399.tar.gz
opensim-SC-32f90a028f87aab6b6e43a4fca8fec2e4962f399.tar.bz2
opensim-SC-32f90a028f87aab6b6e43a4fca8fec2e4962f399.tar.xz
Fix repeated user profile info lookups. Redirect those lookups to cache.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
index 6f72767..f878b5e 100644
--- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
@@ -245,9 +245,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
245 if (m_scene.RegionInfo.EstateSettings.EstateOwner == user) 245 if (m_scene.RegionInfo.EstateSettings.EstateOwner == user)
246 return true; 246 return true;
247 } 247 }
248 UserProfileData userProfile = m_scene.CommsManager.UserService.GetUserProfile(user); 248 CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
249 if((userProfile.GodLevel) >= 200 && m_allowGridGods) 249 if(profile.UserProfile.GodLevel >= 200 && m_AllowGridGods)
250 return true; 250 return true;
251
251 return false; 252 return false;
252 } 253 }
253 254