Merge branch 'shackles_mapimmobile' into 'master'

BUG: Fix limited items being rejected

See merge request 
This commit is contained in:
BondageProjects 2025-03-28 01:16:03 +00:00
commit de6d26a338

View file

@ -570,8 +570,8 @@ function ValidationIsItemBlockedOrLimited(C, sourceMemberNumber, groupName, asse
if (InventoryIsPermissionBlocked(C, assetName, groupName, type)) return true; if (InventoryIsPermissionBlocked(C, assetName, groupName, type)) return true;
if (!InventoryIsPermissionLimited(C, assetName, groupName, type)) return false; if (!InventoryIsPermissionLimited(C, assetName, groupName, type)) return false;
if (C.IsLoverOfMemberNumber(sourceMemberNumber) || C.IsOwnedByMemberNumber(sourceMemberNumber)) return false; if (C.IsLoverOfMemberNumber(sourceMemberNumber) || C.IsOwnedByMemberNumber(sourceMemberNumber)) return false;
// If item permission is "Owner, Lover, whitelist & Dominants" or below, the source must be on their whitelist // The item is limited so if the source is on their whitelist, it's permitted
if (C.ItemPermission < 3 && C.WhiteList.includes(sourceMemberNumber)) return false; if (C.WhiteList.includes(sourceMemberNumber)) return false;
// Otherwise, the item is limited, and the source doesn't have permission // Otherwise, the item is limited, and the source doesn't have permission
return true; return true;
} }