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

This commit is contained in:
Melanie Thielker
2008-08-15 23:29:34 +00:00
parent 04488d9d38
commit 32f90a028f

View File

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