mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +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:
@@ -626,11 +626,17 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||
return GenericCommunicationPermission(user, target);
|
||||
}
|
||||
|
||||
private bool CanIssueEstateCommand(LLUUID user, Scene requestFromScene)
|
||||
private bool CanIssueEstateCommand(LLUUID user, Scene requestFromScene, bool ownerCommand)
|
||||
{
|
||||
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
|
||||
if (m_bypassPermissions) return m_bypassPermissionsValue;
|
||||
|
||||
if (m_scene.RegionInfo.EstateSettings.IsEstateOwner(user))
|
||||
return true;
|
||||
|
||||
if (ownerCommand)
|
||||
return false;
|
||||
|
||||
return GenericEstatePermission(user);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user