diff options
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; |