Patch adds bool IsManager(LLUUID) to IEstateModule.
Returns true whenever the LLUUID references a user who is either an EM or the region owner. Please note that ownership is region-scoped, while EM is estate-scoped.0.6.0-stable
parent
449c09234d
commit
76840906b5
|
@ -34,5 +34,6 @@ namespace OpenSim.Region.Environment.Interfaces
|
|||
public interface IEstateModule : IRegionModule
|
||||
{
|
||||
uint GetRegionFlags();
|
||||
bool IsManager(LLUUID avatarID);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -796,5 +796,17 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
|||
|
||||
return (uint)flags;
|
||||
}
|
||||
|
||||
public bool IsManager(LLUUID avatarID)
|
||||
{
|
||||
if (avatarID == m_scene.RegionInfo.MasterAvatarAssignedUUID)
|
||||
return true;
|
||||
|
||||
List<LLUUID> ems = new List<LLUUID>(m_scene.RegionInfo.EstateSettings.EstateManagers);
|
||||
if(ems.Contains(avatarID))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue