aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/PermissionManager.cs
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-29 15:24:31 +0000
committerTeravus Ovares2007-11-29 15:24:31 +0000
commit4bd38fc65a77826c5646c3154d087171c290cbed (patch)
tree9eb158c06ed8d2b9ce74948e8b6af820352c503c /OpenSim/Region/Environment/PermissionManager.cs
parent*Added more information about the sim that you're connecting to in remoting d... (diff)
downloadopensim-SC_OLD-4bd38fc65a77826c5646c3154d087171c290cbed.zip
opensim-SC_OLD-4bd38fc65a77826c5646c3154d087171c290cbed.tar.gz
opensim-SC_OLD-4bd38fc65a77826c5646c3154d087171c290cbed.tar.bz2
opensim-SC_OLD-4bd38fc65a77826c5646c3154d087171c290cbed.tar.xz
* Thanks to _SomeOne_, Server side permissions on object editing. Be aware, that if you're editing an object on your client that you're not allowed to, it'll appear that it's moving to you, but won't actually be moving on the sim.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/PermissionManager.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/PermissionManager.cs b/OpenSim/Region/Environment/PermissionManager.cs
index 6efa116..bcaa1bf 100644
--- a/OpenSim/Region/Environment/PermissionManager.cs
+++ b/OpenSim/Region/Environment/PermissionManager.cs
@@ -103,6 +103,12 @@ namespace OpenSim.Region.Environment
103 103
104 string reason = "Insufficient permission"; 104 string reason = "Insufficient permission";
105 105
106 Land land = this.m_scene.LandManager.getLandObject(position.X, position.Y);
107 if ((land.landData.landFlags & ((int)Parcel.ParcelFlags.CreateObjects)) == (int)Parcel.ParcelFlags.CreateObjects)
108 permission = true;
109
110 //TODO: check for group rights
111
106 if (IsAdministrator(user)) 112 if (IsAdministrator(user))
107 { 113 {
108 permission = true; 114 permission = true;
@@ -361,4 +367,4 @@ namespace OpenSim.Region.Environment
361 367
362 #endregion 368 #endregion
363 } 369 }
364} \ No newline at end of file 370}