From 7f996448647e2703b82ea750bd38196fe5cea838 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 18 Nov 2007 11:11:44 +0000 Subject: Attempt to get World Map working in Grid mode, will need to be using the grid asset server for it to work correctly and has only been quickly tested in a three region grid. Moved PermissionManager creation out of the Scene constructor and instead a PermissionManager is passed to the constructor as a param. So that we could create and use custom permissionsManagers. Added AllowMovement property to ScenePresence which can be used to stop movement of avatars (for example in a custom region that wanted avatars always in one place). Added PermissionManager call when copying objects, although currently the call will always return true so that it allows copying in places like Wright Plaza. A few other changes/fixes. --- OpenSim/Region/Environment/PermissionManager.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/Environment/PermissionManager.cs') diff --git a/OpenSim/Region/Environment/PermissionManager.cs b/OpenSim/Region/Environment/PermissionManager.cs index 560ecf3..412c6e7 100644 --- a/OpenSim/Region/Environment/PermissionManager.cs +++ b/OpenSim/Region/Environment/PermissionManager.cs @@ -48,12 +48,20 @@ namespace OpenSim.Region.Environment set { m_bypassPermissions = value; } } + public PermissionManager() + { + } public PermissionManager(Scene scene) { m_scene = scene; } + public void Initialise(Scene scene) + { + m_scene = scene; + } + protected virtual void SendPermissionError(LLUUID user, string reason) { m_scene.EventManager.TriggerPermissionError(user, reason); @@ -188,6 +196,12 @@ namespace OpenSim.Region.Environment return GenericObjectPermission(user, obj); } + public virtual bool CanCopyObject(LLUUID user, LLUUID obj) + { + return true; + // return GenericObjectPermission(user, obj); + } + #endregion #region Communication Permissions -- cgit v1.1