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.
This commit is contained in:
Melanie
2009-11-05 16:46:39 +00:00
parent 83b4b4440b
commit b098572525

View File

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