mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user