diff options
Diffstat (limited to 'OpenSim/Region/Environment/PermissionManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/PermissionManager.cs | 8 |
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 | } |