aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authormingchen2008-05-08 19:37:57 +0000
committermingchen2008-05-08 19:37:57 +0000
commit6c71a04da8150f7948df7a43f532e525d44cc4e7 (patch)
treee9ed76fd72fa84f9aad4ff5dec66972e08e93b82 /OpenSim/Region/Environment/Scenes/Scene.cs
parent* Committing an extra bit of permissions for attaching to ensure that the per... (diff)
downloadopensim-SC_OLD-6c71a04da8150f7948df7a43f532e525d44cc4e7.zip
opensim-SC_OLD-6c71a04da8150f7948df7a43f532e525d44cc4e7.tar.gz
opensim-SC_OLD-6c71a04da8150f7948df7a43f532e525d44cc4e7.tar.bz2
opensim-SC_OLD-6c71a04da8150f7948df7a43f532e525d44cc4e7.tar.xz
*Added all the permission checks to the sceneexternalchecks and modified permission module to follow this.
*This makes permission checking much more modular; allows restrictive and granting module to be made without modifying the existing permission module
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index ebbfece..5ce3c7b 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1245,7 +1245,7 @@ namespace OpenSim.Region.Environment.Scenes
1245 1245
1246 LLVector3 pos = GetNewRezLocation(RayStart, RayEnd, RayTargetID, rot, bypassRaycast, RayEndIsIntersection, true, new LLVector3(0.5f,0.5f,0.5f), false); 1246 LLVector3 pos = GetNewRezLocation(RayStart, RayEnd, RayTargetID, rot, bypassRaycast, RayEndIsIntersection, true, new LLVector3(0.5f,0.5f,0.5f), false);
1247 1247
1248 if (Permissions.CanRezObject(ownerID, pos, 1)) 1248 if ( ExternalChecks.ExternalChecksCanRezObject(1,ownerID,pos))
1249 { 1249 {
1250 // rez ON the ground, not IN the ground 1250 // rez ON the ground, not IN the ground
1251 pos.Z += 0.25F; 1251 pos.Z += 0.25F;
@@ -2519,7 +2519,7 @@ namespace OpenSim.Region.Environment.Scenes
2519 if (m_scenePresences.ContainsKey(agentID)) 2519 if (m_scenePresences.ContainsKey(agentID))
2520 { 2520 {
2521 // First check that this is the sim owner 2521 // First check that this is the sim owner
2522 if (Permissions.GenericEstatePermission(agentID)) 2522 if (ExternalChecks.ExternalChecksCanBeGodLike(agentID))
2523 { 2523 {
2524 // Next we check for spoofing..... 2524 // Next we check for spoofing.....
2525 LLUUID testSessionID = m_scenePresences[agentID].ControllingClient.SessionId; 2525 LLUUID testSessionID = m_scenePresences[agentID].ControllingClient.SessionId;
@@ -2597,7 +2597,7 @@ namespace OpenSim.Region.Environment.Scenes
2597 { 2597 {
2598 if (m_scenePresences.ContainsKey(agentID) || agentID == kickUserID) 2598 if (m_scenePresences.ContainsKey(agentID) || agentID == kickUserID)
2599 { 2599 {
2600 if (Permissions.GenericEstatePermission(godID)) 2600 if (ExternalChecks.ExternalChecksCanBeGodLike(godID))
2601 { 2601 {
2602 if (agentID == kickUserID) 2602 if (agentID == kickUserID)
2603 { 2603 {
@@ -2918,7 +2918,7 @@ namespace OpenSim.Region.Environment.Scenes
2918 } 2918 }
2919 else if ((parcel.landData.landFlags & (uint)Parcel.ParcelFlags.AllowGroupScripts) != 0) 2919 else if ((parcel.landData.landFlags & (uint)Parcel.ParcelFlags.AllowGroupScripts) != 0)
2920 { 2920 {
2921 if (part.OwnerID == parcel.landData.ownerID || (parcel.landData.isGroupOwned && part.GroupID == parcel.landData.groupID) || Permissions.GenericEstatePermission(part.OwnerID)) 2921 if (part.OwnerID == parcel.landData.ownerID || (parcel.landData.isGroupOwned && part.GroupID == parcel.landData.groupID) || ExternalChecks.ExternalChecksCanBeGodLike(part.OwnerID))
2922 { 2922 {
2923 return true; 2923 return true;
2924 } 2924 }