give/use the new group power

master
UbitUmarov 2020-06-18 14:33:14 +01:00
parent 362025be38
commit 1b870131d4
3 changed files with 4 additions and 2 deletions

View File

@ -68,6 +68,7 @@ namespace OpenSim.Groups
GroupPowers.LandDeed |
GroupPowers.LandDivideJoin |
GroupPowers.LandEdit |
GroupPowers.AllowEnvironment |
GroupPowers.LandEjectAndFreeze |
GroupPowers.LandGardening |
GroupPowers.LandManageAllowed |

View File

@ -491,7 +491,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
}
if (track != -1)
{
message = "Environment Track not suported";
message = "Environment Track not supported";
goto Error;
}
}
@ -517,7 +517,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
goto Error;
}
if (!m_scene.Permissions.CanEditParcelProperties(agentID, lchannel, 0, true)) // wrong
if (!m_scene.Permissions.CanEditParcelProperties(agentID, lchannel, (GroupPowers.AllowEnvironment | GroupPowers.LandEdit), true)) // wrong
{
message = "No permission to change parcel environment";
goto Error;

View File

@ -88,6 +88,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
| GroupPowers.LandDeed
| GroupPowers.LandDivideJoin
| GroupPowers.LandEdit
| GroupPowers.AllowEnvironment
| GroupPowers.LandEjectAndFreeze
| GroupPowers.LandGardening
| GroupPowers.LandManageAllowed