mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Remove parcel_owner_is_god option. It is conceptually wrong and with
limited use. Relevant parcel owners can just be made estate managers with better regions management logic
This commit is contained in:
@@ -53,7 +53,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
protected bool m_forceGridGodsOnly;
|
||||
protected bool m_regionOwnerIsGod;
|
||||
protected bool m_regionManagerIsGod;
|
||||
protected bool m_parcelOwnerIsGod;
|
||||
protected bool m_forceGodModeAlwaysOn;
|
||||
protected bool m_allowGodActionsWithoutGodMode;
|
||||
|
||||
@@ -94,10 +93,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
Util.GetConfigVarFromSections<bool>(config,
|
||||
"region_manager_is_god", sections, false);
|
||||
|
||||
// Parcel owners are gods in their own parcels only.
|
||||
m_parcelOwnerIsGod =
|
||||
Util.GetConfigVarFromSections<bool>(config,
|
||||
"parcel_owner_is_god", sections, false);
|
||||
}
|
||||
else
|
||||
m_allowGridGods = true; // reduce user mistakes increased by this over complex options set
|
||||
@@ -140,14 +135,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (m_regionManagerIsGod && m_scene.Permissions.IsEstateManager(m_scenePresence.UUID))
|
||||
return true;
|
||||
|
||||
if (m_parcelOwnerIsGod) // Skip expensive check if we're already god!
|
||||
{
|
||||
Vector3 pos = m_scenePresence.AbsolutePosition;
|
||||
ILandObject parcel = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
||||
if (parcel != null && parcel.LandData.OwnerID == m_scenePresence.UUID)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user