Skip to content

Commit 145dcd7

Browse files
authored
Merge pull request guardian#4300 from bbc/t1803-usage-rights-bug
correct logic error in usable for all when restrictions are inferred from config
2 parents 0afabac + c62a7c0 commit 145dcd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kahuna/public/js/components/gr-usagerights-summary/gr-usagerights-bbc.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ const usableForAllClause = (image: any) : boolean => {
4646
image.data.cost.toString().toLowerCase() === "conditional")) {
4747
hasRestrictions = true;
4848
}
49+
if (image.data.usageRights &&
50+
image.data.usageRights.usageRestrictions) {
51+
hasRestrictions = true;
52+
}
4953
let bbcOwned = false;
5054
if (image.data.metadata.credit &&
5155
image.data.metadata.credit.toString().toLowerCase().includes("bbc")) {

0 commit comments

Comments
 (0)