diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | 11 |
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 | ||