Fix repeated user profile info lookups. Redirect those lookups to cache.

0.6.0-stable
Melanie Thielker 2008-08-15 23:29:34 +00:00
parent 04488d9d38
commit 32f90a028f
1 changed files with 3 additions and 2 deletions

View File

@ -245,9 +245,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
if (m_scene.RegionInfo.EstateSettings.EstateOwner == user) if (m_scene.RegionInfo.EstateSettings.EstateOwner == user)
return true; return true;
} }
UserProfileData userProfile = m_scene.CommsManager.UserService.GetUserProfile(user); CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
if((userProfile.GodLevel) >= 200 && m_allowGridGods) if(profile.UserProfile.GodLevel >= 200 && m_AllowGridGods)
return true; return true;
return false; return false;
} }