mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Revert "If a user has the rights to edit a parcel's properties, then also allow them always to enter that parcel."
This reverts commit b8e7258051.
Letting this go in would prevent land owners from banning someone who would
have incidental editing rights through a group. The land owner should be the
only unbannable person.
This commit is contained in:
@@ -449,7 +449,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
|
||||
public bool IsBannedFromLand(UUID avatar)
|
||||
{
|
||||
if (m_scene.Permissions.CanEditParcelProperties(avatar, this, 0))
|
||||
if (m_scene.Permissions.IsAdministrator(avatar))
|
||||
return false;
|
||||
|
||||
if (m_scene.RegionInfo.EstateSettings.IsEstateManager(avatar))
|
||||
@@ -463,7 +463,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
if (e.AgentID == avatar && e.Flags == AccessList.Ban)
|
||||
return true;
|
||||
return false;
|
||||
}) != -1)
|
||||
}) != -1 && LandData.OwnerID != avatar)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -473,7 +473,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
|
||||
public bool IsRestrictedFromLand(UUID avatar)
|
||||
{
|
||||
if (m_scene.Permissions.CanEditParcelProperties(avatar, this, 0))
|
||||
if (m_scene.Permissions.IsAdministrator(avatar))
|
||||
return false;
|
||||
|
||||
if (m_scene.RegionInfo.EstateSettings.IsEstateManager(avatar))
|
||||
@@ -487,7 +487,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
if (e.AgentID == avatar && e.Flags == AccessList.Access)
|
||||
return true;
|
||||
return false;
|
||||
}) == -1)
|
||||
}) == -1 && LandData.OwnerID != avatar)
|
||||
{
|
||||
if (!HasGroupAccess(avatar))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user