aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
diff options
context:
space:
mode:
authorMelanie2010-12-13 20:19:52 +0100
committerMelanie2010-12-13 20:19:52 +0100
commit6b374fa54767a22c1d236470c8a19ee59b44d937 (patch)
tree489eb8847b445bd652b89683c55e3545fc7c6ad8 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
parentChange some lookups in he Land Management module to make group permissions (diff)
downloadopensim-SC_OLD-6b374fa54767a22c1d236470c8a19ee59b44d937.zip
opensim-SC_OLD-6b374fa54767a22c1d236470c8a19ee59b44d937.tar.gz
opensim-SC_OLD-6b374fa54767a22c1d236470c8a19ee59b44d937.tar.bz2
opensim-SC_OLD-6b374fa54767a22c1d236470c8a19ee59b44d937.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.cs2
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 ecd2d6f..712648d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -1342,7 +1342,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1342 return; 1342 return;
1343 } 1343 }
1344 1344
1345 if (! World.Permissions.CanEditParcel(m_host.OwnerID, startLandObject)) 1345 if (!World.Permissions.CanEditParcelProperties(m_host.OwnerID, startLandObject, GroupPowers.LandOptions))
1346 { 1346 {
1347 OSSLShoutError("You do not have permission to modify the parcel"); 1347 OSSLShoutError("You do not have permission to modify the parcel");
1348 return; 1348 return;