diff options
author | Charles Krinke | 2008-02-18 03:14:31 +0000 |
---|---|---|
committer | Charles Krinke | 2008-02-18 03:14:31 +0000 |
commit | 3df36523cb8814b71b8327c19185d73075ee41dc (patch) | |
tree | c0204f72d5fbdc1764275a45e32bb4f816eecf19 /OpenSim/Region/Environment/PermissionManager.cs | |
parent | ODE: Tired of floating above the ground after crossing a border? Boy have I ... (diff) | |
download | opensim-SC_OLD-3df36523cb8814b71b8327c19185d73075ee41dc.zip opensim-SC_OLD-3df36523cb8814b71b8327c19185d73075ee41dc.tar.gz opensim-SC_OLD-3df36523cb8814b71b8327c19185d73075ee41dc.tar.bz2 opensim-SC_OLD-3df36523cb8814b71b8327c19185d73075ee41dc.tar.xz |
Thank you very much, Hashbox for:
Changed the public IsAdministrator back to protected,
now checks Config to see whether it is allowed to run or not.
Defaults to false (not allowed).
To use add the following to OpenSim.ini
[LL-Functions]
AllowosConsoleCommand=true
Diffstat (limited to 'OpenSim/Region/Environment/PermissionManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/PermissionManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/PermissionManager.cs b/OpenSim/Region/Environment/PermissionManager.cs index 36f75d1..5958249 100644 --- a/OpenSim/Region/Environment/PermissionManager.cs +++ b/OpenSim/Region/Environment/PermissionManager.cs | |||
@@ -74,7 +74,7 @@ namespace OpenSim.Region.Environment | |||
74 | m_scene.EventManager.TriggerPermissionError(user, reason); | 74 | m_scene.EventManager.TriggerPermissionError(user, reason); |
75 | } | 75 | } |
76 | 76 | ||
77 | public virtual bool IsAdministrator(LLUUID user) | 77 | protected virtual bool IsAdministrator(LLUUID user) |
78 | { | 78 | { |
79 | if (m_bypassPermissions) | 79 | if (m_bypassPermissions) |
80 | { | 80 | { |
@@ -495,6 +495,11 @@ namespace OpenSim.Region.Environment | |||
495 | return IsAdministrator(user); | 495 | return IsAdministrator(user); |
496 | } | 496 | } |
497 | 497 | ||
498 | public virtual bool CanRunConsoleCommand(LLUUID user) | ||
499 | { | ||
500 | return IsAdministrator(user); | ||
501 | } | ||
502 | |||
498 | public virtual bool CanTerraform(LLUUID user, LLVector3 position) | 503 | public virtual bool CanTerraform(LLUUID user, LLVector3 position) |
499 | { | 504 | { |
500 | bool permission = false; | 505 | bool permission = false; |