change parcel env group power check to only parcel environment modify

master
UbitUmarov 2020-07-15 22:52:47 +01:00
parent 4176e1491e
commit f7104a66a5
2 changed files with 3 additions and 3 deletions

View File

@ -583,7 +583,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
goto Error;
}
if (!m_scene.Permissions.CanEditParcelProperties(agentID, lchannel, (GroupPowers.AllowEnvironment | GroupPowers.LandEdit), true)) // wrong
if (!m_scene.Permissions.CanEditParcelProperties(agentID, lchannel, GroupPowers.AllowEnvironment, true)) // wrong
{
message = "No permission to change parcel environment";
goto Error;

View File

@ -5940,7 +5940,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (parcel == null)
return -2;
if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, parcel, (GroupPowers.AllowEnvironment | GroupPowers.LandEdit), true))
if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, parcel, (GroupPowers.AllowEnvironment), true))
return -3;
ViewerEnvironment VEnv;
@ -6078,7 +6078,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (parcel == null)
return -2;
if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, parcel, (GroupPowers.AllowEnvironment | GroupPowers.LandEdit), true))
if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, parcel, (GroupPowers.AllowEnvironment), true))
return -3;
if (parcel.LandData.Environment == null)
return 1;