diff options
author | Melanie | 2009-11-05 02:09:07 +0000 |
---|---|---|
committer | Melanie | 2009-11-05 02:09:07 +0000 |
commit | 83b4b4440b7becb405840bc69d665e260fdecea0 (patch) | |
tree | a623dc9c6d82bfb96d1db978d2464e3cbaf4d0ca /OpenSim/Region/ClientStack/LindenUDP | |
parent | Separate folder and item limit for UDP inventory packets. Folder limit is (diff) | |
download | opensim-SC_OLD-83b4b4440b7becb405840bc69d665e260fdecea0.zip opensim-SC_OLD-83b4b4440b7becb405840bc69d665e260fdecea0.tar.gz opensim-SC_OLD-83b4b4440b7becb405840bc69d665e260fdecea0.tar.bz2 opensim-SC_OLD-83b4b4440b7becb405840bc69d665e260fdecea0.tar.xz |
Patch by revolution, thank you. Mantis #1789 . Implement friends permissions.
Applied with major changes. Core functionality commented pending review
for possible rights escalation. No user functionality yet.
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 70abe77..34cad7b 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -220,6 +220,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
220 | public event FriendActionDelegate OnApproveFriendRequest; | 220 | public event FriendActionDelegate OnApproveFriendRequest; |
221 | public event FriendActionDelegate OnDenyFriendRequest; | 221 | public event FriendActionDelegate OnDenyFriendRequest; |
222 | public event FriendshipTermination OnTerminateFriendship; | 222 | public event FriendshipTermination OnTerminateFriendship; |
223 | public event GrantUserFriendRights OnGrantUserRights; | ||
223 | public event MoneyTransferRequest OnMoneyTransferRequest; | 224 | public event MoneyTransferRequest OnMoneyTransferRequest; |
224 | public event EconomyDataRequest OnEconomyDataRequest; | 225 | public event EconomyDataRequest OnEconomyDataRequest; |
225 | public event MoneyBalanceRequest OnMoneyBalanceRequest; | 226 | public event MoneyBalanceRequest OnMoneyBalanceRequest; |
@@ -9719,7 +9720,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
9719 | Utils.BytesToString(avatarInterestUpdate.PropertiesData.SkillsText), | 9720 | Utils.BytesToString(avatarInterestUpdate.PropertiesData.SkillsText), |
9720 | Utils.BytesToString(avatarInterestUpdate.PropertiesData.LanguagesText)); | 9721 | Utils.BytesToString(avatarInterestUpdate.PropertiesData.LanguagesText)); |
9721 | break; | 9722 | break; |
9722 | 9723 | ||
9724 | case PacketType.GrantUserRights: | ||
9725 | GrantUserRightsPacket GrantUserRights = | ||
9726 | (GrantUserRightsPacket)Pack; | ||
9727 | #region Packet Session and User Check | ||
9728 | if (m_checkPackets) | ||
9729 | { | ||
9730 | if (GrantUserRights.AgentData.SessionID != SessionId || | ||
9731 | GrantUserRights.AgentData.AgentID != AgentId) | ||
9732 | break; | ||
9733 | } | ||
9734 | #endregion | ||
9735 | GrantUserFriendRights GrantUserRightsHandler = OnGrantUserRights; | ||
9736 | if (GrantUserRightsHandler != null) | ||
9737 | GrantUserRightsHandler(this, | ||
9738 | GrantUserRights.AgentData.AgentID, | ||
9739 | GrantUserRights.Rights[0].AgentRelated, | ||
9740 | GrantUserRights.Rights[0].RelatedRights); | ||
9741 | break; | ||
9742 | |||
9723 | case PacketType.PlacesQuery: | 9743 | case PacketType.PlacesQuery: |
9724 | PlacesQueryPacket placesQueryPacket = | 9744 | PlacesQueryPacket placesQueryPacket = |
9725 | (PlacesQueryPacket)Pack; | 9745 | (PlacesQueryPacket)Pack; |