Reshuffle to eliminate prim owner lookups unless gridgods are enabled
parent
e5a7ba5df4
commit
682ffef101
|
@ -246,11 +246,14 @@ 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;
|
||||||
}
|
}
|
||||||
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
|
if(m_allowGridGods)
|
||||||
if(profile != null && profile.UserProfile != null)
|
|
||||||
{
|
{
|
||||||
if(profile.UserProfile.GodLevel >= 200 && m_allowGridGods)
|
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
|
||||||
return true;
|
if(profile != null && profile.UserProfile != null)
|
||||||
|
{
|
||||||
|
if(profile.UserProfile.GodLevel >= 200)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue