Harmonize the class name, ID and Name of the default perms module
parent
59290854f2
commit
b41ae0f98f
|
@ -42,8 +42,8 @@ using PermissionMask = OpenSim.Framework.PermissionMask;
|
||||||
|
|
||||||
namespace OpenSim.Region.CoreModules.World.Permissions
|
namespace OpenSim.Region.CoreModules.World.Permissions
|
||||||
{
|
{
|
||||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "PermissionsModule")]
|
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "DefaultPermissionsModule")]
|
||||||
public class PermissionsModule : INonSharedRegionModule, IPermissionsModule
|
public class DefaultPermissionsModule : INonSharedRegionModule, IPermissionsModule
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
|
||||||
|
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
get { return "PermissionsModule"; }
|
get { return "DefaultPermissionsModule"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Type ReplaceableInterface
|
public Type ReplaceableInterface
|
||||||
|
|
|
@ -67,7 +67,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
IConfig config = configSource.AddConfig("Startup");
|
IConfig config = configSource.AddConfig("Startup");
|
||||||
config.Set("serverside_object_permissions", true);
|
config.Set("serverside_object_permissions", true);
|
||||||
SceneHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
SceneHelpers.SetupSceneModules(scene, configSource, new object[] { new DefaultPermissionsModule() });
|
||||||
IClientAPI client = SceneHelpers.AddScenePresence(scene, userId).ControllingClient;
|
IClientAPI client = SceneHelpers.AddScenePresence(scene, userId).ControllingClient;
|
||||||
|
|
||||||
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
||||||
|
@ -112,7 +112,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
IConfig config = configSource.AddConfig("Startup");
|
IConfig config = configSource.AddConfig("Startup");
|
||||||
config.Set("serverside_object_permissions", true);
|
config.Set("serverside_object_permissions", true);
|
||||||
SceneHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
SceneHelpers.SetupSceneModules(scene, configSource, new object[] { new DefaultPermissionsModule() });
|
||||||
IClientAPI client = SceneHelpers.AddScenePresence(scene, userId).ControllingClient;
|
IClientAPI client = SceneHelpers.AddScenePresence(scene, userId).ControllingClient;
|
||||||
|
|
||||||
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
SceneHelpers.SetupSceneModules(
|
SceneHelpers.SetupSceneModules(
|
||||||
scene, configSource, new object[]
|
scene, configSource, new object[]
|
||||||
{ new PermissionsModule(),
|
{ new DefaultPermissionsModule(),
|
||||||
new GroupsModule(),
|
new GroupsModule(),
|
||||||
new MockGroupsServicesConnector() });
|
new MockGroupsServicesConnector() });
|
||||||
|
|
||||||
|
|
|
@ -216,7 +216,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
// We need to set up the permisions module on scene B so that our later use of agent limit to deny
|
// We need to set up the permisions module on scene B so that our later use of agent limit to deny
|
||||||
// QueryAccess won't succeed anyway because administrators are always allowed in and the default
|
// QueryAccess won't succeed anyway because administrators are always allowed in and the default
|
||||||
// IsAdministrator if no permissions module is present is true.
|
// IsAdministrator if no permissions module is present is true.
|
||||||
SceneHelpers.SetupSceneModules(sceneB, config, new object[] { new PermissionsModule(), etmB });
|
SceneHelpers.SetupSceneModules(sceneB, config, new object[] { new DefaultPermissionsModule(), etmB });
|
||||||
|
|
||||||
// Shared scene modules
|
// Shared scene modules
|
||||||
SceneHelpers.SetupSceneModules(new Scene[] { sceneA, sceneB }, config, lscm);
|
SceneHelpers.SetupSceneModules(new Scene[] { sceneA, sceneB }, config, lscm);
|
||||||
|
@ -381,7 +381,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
// We need to set up the permisions module on scene B so that our later use of agent limit to deny
|
// We need to set up the permisions module on scene B so that our later use of agent limit to deny
|
||||||
// QueryAccess won't succeed anyway because administrators are always allowed in and the default
|
// QueryAccess won't succeed anyway because administrators are always allowed in and the default
|
||||||
// IsAdministrator if no permissions module is present is true.
|
// IsAdministrator if no permissions module is present is true.
|
||||||
SceneHelpers.SetupSceneModules(sceneB, config, new object[] { new PermissionsModule(), etmB });
|
SceneHelpers.SetupSceneModules(sceneB, config, new object[] { new DefaultPermissionsModule(), etmB });
|
||||||
|
|
||||||
// Shared scene modules
|
// Shared scene modules
|
||||||
SceneHelpers.SetupSceneModules(new Scene[] { sceneA, sceneB }, config, lscm);
|
SceneHelpers.SetupSceneModules(new Scene[] { sceneA, sceneB }, config, lscm);
|
||||||
|
|
Loading…
Reference in New Issue