aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-06-11 19:40:09 +0100
committerJustin Clark-Casey (justincc)2010-06-11 19:40:09 +0100
commit85c20e149364dba6f171db1d2018c2149c6b102f (patch)
treedd2a22db0369164985cfce6f3b9aec3c944e2041 /OpenSim/Region
parentremove SimianGrid Groups OpenSim.ini.example stuff that accidentally crept in... (diff)
downloadopensim-SC-85c20e149364dba6f171db1d2018c2149c6b102f.zip
opensim-SC-85c20e149364dba6f171db1d2018c2149c6b102f.tar.gz
opensim-SC-85c20e149364dba6f171db1d2018c2149c6b102f.tar.bz2
opensim-SC-85c20e149364dba6f171db1d2018c2149c6b102f.tar.xz
revert group membership checking to older code pending resolution of reported performance problems
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index 53556ab..91ce362 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -414,6 +414,16 @@ namespace OpenSim.Region.CoreModules.World.Permissions
414 //DateTime t1 = DateTime.Now; 414 //DateTime t1 = DateTime.Now;
415 bool result = false; 415 bool result = false;
416 416
417 ScenePresence sp = m_scene.GetScenePresence(userID);
418 if (sp != null)
419 {
420 IClientAPI client = sp.ControllingClient;
421
422 result = ((groupID == client.ActiveGroupId) && (client.ActiveGroupPowers != 0) &&
423 ((powers == 0) || ((client.ActiveGroupPowers & powers) == powers)));
424 }
425
426 /*
417 if (null != m_groupsModule) 427 if (null != m_groupsModule)
418 { 428 {
419 GroupMembershipData gmd = m_groupsModule.GetMembershipData(groupID, userID); 429 GroupMembershipData gmd = m_groupsModule.GetMembershipData(groupID, userID);
@@ -424,6 +434,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
424 result = true; 434 result = true;
425 } 435 }
426 } 436 }
437 */
427 438
428 //m_log.DebugFormat("[PERMISSIONS]: Group member check took {0}", (DateTime.Now - t1).TotalMilliseconds); 439 //m_log.DebugFormat("[PERMISSIONS]: Group member check took {0}", (DateTime.Now - t1).TotalMilliseconds);
429 440