Remove a spammy debug message from friends list check in the perms module.

Replace the integer compares with proper bitflags checking from libOMV.
Friends rights are now functional.
0.6.8-post-fixes
Melanie 2009-11-05 16:46:39 +00:00
parent 83b4b4440b
commit b098572525
1 changed files with 2 additions and 20 deletions

View File

@ -484,26 +484,8 @@ namespace OpenSim.Region.CoreModules.World.Permissions
List<FriendListItem> profile = m_scene.CommsManager.GetUserFriendList(user); List<FriendListItem> profile = m_scene.CommsManager.GetUserFriendList(user);
foreach (FriendListItem item in profile) foreach (FriendListItem item in profile)
{ {
m_log.Warn("IsFriendWithPerms called" + item.FriendPerms.ToString()); if(item.Friend == objectOwner && (item.FriendPerms & (uint)FriendRights.CanModifyObjects) != 0)
if(item.Friend == objectOwner) return true;
{
// if (item.FriendPerms == 3)
// {
// return true;
// }
// if (item.FriendPerms == 4)
// {
// return true;
// }
// if (item.FriendPerms == 5)
// {
// return true;
// }
// if (item.FriendPerms == 7)
// {
// return true;
// }
}
} }
return false; return false;
} }