mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:17:34 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user