diff options
author | mingchen | 2008-07-25 02:30:07 +0000 |
---|---|---|
committer | mingchen | 2008-07-25 02:30:07 +0000 |
commit | f2742fb6043c6b7332afd026d77a29b25369934c (patch) | |
tree | 895f906ba9db30b27117e6f0d7af40e063204e8e /OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |
parent | llApplyImpulse now accepts any non-zero integer as not FALSE (diff) | |
download | opensim-SC_OLD-f2742fb6043c6b7332afd026d77a29b25369934c.zip opensim-SC_OLD-f2742fb6043c6b7332afd026d77a29b25369934c.tar.gz opensim-SC_OLD-f2742fb6043c6b7332afd026d77a29b25369934c.tar.bz2 opensim-SC_OLD-f2742fb6043c6b7332afd026d77a29b25369934c.tar.xz |
*Added CommandIntentions that is used to describe a console commands hazard. HAZARDOUS if it modifies the simulator, NON_HAZARDOUS if it does a command that doesn't modify the simulator but does a background command such as a forced backup, and STATISTICAL if it returns debug or more information.
*This is useful for implementing a protection system from unwanted script execution or for application modules needing to know what a command does.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 23db484..f9a0bdb 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |||
@@ -182,13 +182,13 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
182 | 182 | ||
183 | 183 | ||
184 | //Register Debug Commands | 184 | //Register Debug Commands |
185 | Command bypassCommand = new Command("bypass", InterfaceBypassPermissions, "Force the permissions a specific way to test permissions"); | 185 | Command bypassCommand = new Command("bypass", CommandIntentions.COMMAND_HAZARDOUS, InterfaceBypassPermissions, "Force the permissions a specific way to test permissions"); |
186 | bypassCommand.AddArgument("enable_bypass_perms", "true to enable bypassing all perms", "Boolean"); | 186 | bypassCommand.AddArgument("enable_bypass_perms", "true to enable bypassing all perms", "Boolean"); |
187 | bypassCommand.AddArgument("bypass_perms_value", "true/false: true will ignore all perms; false will restrict everything", "Boolean"); | 187 | bypassCommand.AddArgument("bypass_perms_value", "true/false: true will ignore all perms; false will restrict everything", "Boolean"); |
188 | 188 | ||
189 | m_commander.RegisterCommand("bypass", bypassCommand); | 189 | m_commander.RegisterCommand("bypass", bypassCommand); |
190 | 190 | ||
191 | Command debugCommand = new Command("debug", InterfaceDebugPermissions, "Force the permissions a specific way to test permissions"); | 191 | Command debugCommand = new Command("debug", CommandIntentions.COMMAND_STATISTICAL, InterfaceDebugPermissions, "Force the permissions a specific way to test permissions"); |
192 | debugCommand.AddArgument("enable_debug_perms", "true to enable debugging to console all perms", "Boolean"); | 192 | debugCommand.AddArgument("enable_debug_perms", "true to enable debugging to console all perms", "Boolean"); |
193 | 193 | ||
194 | m_commander.RegisterCommand("debug", debugCommand); | 194 | m_commander.RegisterCommand("debug", debugCommand); |