add options for regions to ignore age < 18 and payment access control where they don't apply

This commit is contained in:
UbitUmarov
2018-07-14 16:36:41 +01:00
parent 6b8fda098d
commit a4881797b9
2 changed files with 14 additions and 6 deletions

View File

@@ -224,7 +224,6 @@ namespace OpenSim.Framework
}
private UUID m_EstateOwner = UUID.Zero;
public UUID EstateOwner
{
get { return m_EstateOwner; }
@@ -232,7 +231,6 @@ namespace OpenSim.Framework
}
private bool m_DenyMinors = false;
public bool DenyMinors
{
get { return m_DenyMinors; }
@@ -258,7 +256,6 @@ namespace OpenSim.Framework
}
private List<UUID> l_EstateAccess = new List<UUID>();
public UUID[] EstateAccess
{
get { return l_EstateAccess.ToArray(); }
@@ -266,13 +263,15 @@ namespace OpenSim.Framework
}
private List<UUID> l_EstateGroups = new List<UUID>();
public UUID[] EstateGroups
{
get { return l_EstateGroups.ToArray(); }
set { l_EstateGroups = new List<UUID>(value); }
}
public bool DoDenyMinors = true;
public bool DoDenyAnonymous = true;
public EstateSettings()
{
}
@@ -380,14 +379,14 @@ namespace OpenSim.Framework
if (!HasAccess(avatarID))
{
if (DenyMinors)
if (DoDenyMinors && DenyMinors)
{
if ((userFlags & 32) == 0)
{
return true;
}
}
if (DenyAnonymous)
if (DoDenyAnonymous && DenyAnonymous)
{
if ((userFlags & 4) == 0)
{