change parcel env group power check to only parcel environment modify
parent
4176e1491e
commit
f7104a66a5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue