diff options
author | Melanie Thielker | 2008-11-14 17:24:56 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-14 17:24:56 +0000 |
commit | edee11ff8750d452f012690c556384984795f4be (patch) | |
tree | 21738d6ee71f00dea792585ab25557c64e571dca /OpenSim/Region/Environment/Modules | |
parent | * Switch default permissions back to false (so they are not on) as they were ... (diff) | |
download | opensim-SC_OLD-edee11ff8750d452f012690c556384984795f4be.zip opensim-SC_OLD-edee11ff8750d452f012690c556384984795f4be.tar.gz opensim-SC_OLD-edee11ff8750d452f012690c556384984795f4be.tar.bz2 opensim-SC_OLD-edee11ff8750d452f012690c556384984795f4be.tar.xz |
Reapplying a revised version of Christopher Yeoh's (IBM) patch for allow
inventory drop. Also adds a new flags, "propagate_permissions" to
OpenSim.ini to control that feature.
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 28e9850..7f567e5 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |||
@@ -64,6 +64,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
64 | // Bypasses the permissions engine | 64 | // Bypasses the permissions engine |
65 | private bool m_bypassPermissions = true; | 65 | private bool m_bypassPermissions = true; |
66 | private bool m_bypassPermissionsValue = true; | 66 | private bool m_bypassPermissionsValue = true; |
67 | private bool m_propagatePermissions = false; | ||
67 | private bool m_debugPermissions = false; | 68 | private bool m_debugPermissions = false; |
68 | private bool m_allowGridGods = false; | 69 | private bool m_allowGridGods = false; |
69 | private bool m_RegionOwnerIsGod = false; | 70 | private bool m_RegionOwnerIsGod = false; |
@@ -143,6 +144,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
143 | 144 | ||
144 | m_allowGridGods = myConfig.GetBoolean("allow_grid_gods", false); | 145 | m_allowGridGods = myConfig.GetBoolean("allow_grid_gods", false); |
145 | m_bypassPermissions = !myConfig.GetBoolean("serverside_object_permissions", true); | 146 | m_bypassPermissions = !myConfig.GetBoolean("serverside_object_permissions", true); |
147 | m_propagatePermissions = myConfig.GetBoolean("propagate_permissions", true); | ||
146 | m_RegionOwnerIsGod = myConfig.GetBoolean("region_owner_is_god", true); | 148 | m_RegionOwnerIsGod = myConfig.GetBoolean("region_owner_is_god", true); |
147 | m_ParcelOwnerIsGod = myConfig.GetBoolean("parcel_owner_is_god", true); | 149 | m_ParcelOwnerIsGod = myConfig.GetBoolean("parcel_owner_is_god", true); |
148 | 150 | ||
@@ -278,7 +280,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
278 | 280 | ||
279 | public bool PropagatePermissions() | 281 | public bool PropagatePermissions() |
280 | { | 282 | { |
281 | return false; | 283 | if (m_bypassPermissions) |
284 | return false; | ||
285 | |||
286 | return m_propagatePermissions; | ||
282 | } | 287 | } |
283 | 288 | ||
284 | public bool BypassPermissions() | 289 | public bool BypassPermissions() |