mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Merge branch 'shackles_mapimmobile' into 'master'
BUG: Fix limited items being rejected See merge request BondageProjects/Bondage-College!5490
This commit is contained in:
commit
de6d26a338
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue