diff options
author | Melanie | 2010-12-13 20:35:56 +0000 |
---|---|---|
committer | Melanie | 2010-12-13 20:35:56 +0000 |
commit | 9bd7f3b03a315d713d53451a36fd64c419ce5f35 (patch) | |
tree | 2c56939c277504a6b9997b825255a70df6b37cf2 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | Change some lookups in he Land Management module to make group permissions (diff) | |
download | opensim-SC-9bd7f3b03a315d713d53451a36fd64c419ce5f35.zip opensim-SC-9bd7f3b03a315d713d53451a36fd64c419ce5f35.tar.gz opensim-SC-9bd7f3b03a315d713d53451a36fd64c419ce5f35.tar.bz2 opensim-SC-9bd7f3b03a315d713d53451a36fd64c419ce5f35.tar.xz |
Revamp the viewer -> banlist packet processing so fix a number of bugs.
Remove the too coarse CanEditParcel method in favor of a CanEditParcelProperties
method that takes a GroupPowers argument to specify what action is to be
taken. Also, make the method to set parcel data much more granular. Permissions
in a deeded setting should now work.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 3b13d06..5a796b8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1335,7 +1335,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1335 | return; | 1335 | return; |
1336 | } | 1336 | } |
1337 | 1337 | ||
1338 | if (! World.Permissions.CanEditParcel(m_host.OwnerID, startLandObject)) | 1338 | if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, startLandObject, GroupPowers.LandOptions)) |
1339 | { | 1339 | { |
1340 | OSSLShoutError("You do not have permission to modify the parcel"); | 1340 | OSSLShoutError("You do not have permission to modify the parcel"); |
1341 | return; | 1341 | return; |