mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Make the estate owner work. Changes permissions checks to allow the
estate owner user the ability to add and remove estate managers, and have EM rights outside of that.
This commit is contained in:
@@ -761,7 +761,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
#endregion
|
||||
|
||||
#region CAN ISSUE ESTATE COMMAND
|
||||
public delegate bool CanIssueEstateCommand(LLUUID user, Scene requestFromScene);
|
||||
public delegate bool CanIssueEstateCommand(LLUUID user, Scene requestFromScene, bool ownerCommand);
|
||||
private List<CanIssueEstateCommand> CanIssueEstateCommandCheckFunctions = new List<CanIssueEstateCommand>();
|
||||
|
||||
public void addCheckIssueEstateCommand(CanIssueEstateCommand delegateFunc)
|
||||
@@ -775,11 +775,11 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
CanIssueEstateCommandCheckFunctions.Remove(delegateFunc);
|
||||
}
|
||||
|
||||
public bool ExternalChecksCanIssueEstateCommand(LLUUID user)
|
||||
public bool ExternalChecksCanIssueEstateCommand(LLUUID user, bool ownerCommand)
|
||||
{
|
||||
foreach (CanIssueEstateCommand check in CanIssueEstateCommandCheckFunctions)
|
||||
{
|
||||
if (check(user, m_scene) == false)
|
||||
if (check(user, m_scene, ownerCommand) == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user