fix right to change permissions of group owned objects

This commit is contained in:
UbitUmarov
2017-05-03 21:12:16 +01:00
parent 3ef583f205
commit d62aed7f46
3 changed files with 57 additions and 3 deletions

View File

@@ -4460,8 +4460,11 @@ SendFullUpdateToClient(remoteClient, Position) ignores position parameter
if (god)
baseMask = 0x7ffffff0;
// Are we the owner?
if ((AgentID == OwnerID) || god)
bool canChange = (AgentID == OwnerID) || god;
if(!canChange)
canChange = ParentGroup.Scene.Permissions.CanEditObjectPermissions(ParentGroup, AgentID);
if (canChange)
{
switch (field)
{