From 58af0fabeb909452e1db615afd05a1bb78678191 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Thu, 31 Jul 2008 15:53:07 +0000
Subject: * minor: reduce coupling by passing in only session id to
CachedUserInfo
---
OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Framework/Communications/Cache/CachedUserInfo.cs')
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
index 11516f0..4c0aaa2 100644
--- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
+++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
@@ -101,11 +101,19 @@ namespace OpenSim.Framework.Communications.Cache
m_userProfile = userProfile;
}
- public CachedUserInfo(CommunicationsManager commsManager, UserProfileData userProfile, IClientAPI remoteClient)
+ ///
+ /// Constructor
+ ///
+ ///
+ ///
+ ///
+ /// Session id of the user. This is used in subsequent security checks.
+ ///
+ public CachedUserInfo(CommunicationsManager commsManager, UserProfileData userProfile, LLUUID sessionId)
{
m_commsManager = commsManager;
m_userProfile = userProfile;
- m_session_id = remoteClient.SessionId;
+ m_session_id = sessionId;
}
///
--
cgit v1.1