Skip to content

Commit

Permalink
LPD-22929 fix LocalFile.CPCommerceProductVisibility#CanAssertEmptyPro…
Browse files Browse the repository at this point in the history
…ductChannelsVisibilityWithProductsAndCatalogsViewPermissions
  • Loading branch information
andrea-ale-sbarra authored and brianchandotcom committed Apr 12, 2024
1 parent ecd0c9e commit b535d7c
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,10 @@ private Map<String, Map<String, String>> _getActions(
"UPDATE", cpDefinition.getCPDefinitionId(), "deleteProduct",
_cpDefinitionModelResourcePermission);

if (action == null) {
return null;
}

String href = action.get("href");

action.put(
Expand All @@ -753,6 +757,10 @@ private Map<String, Map<String, String>> _getActions(
"VIEW", cpDefinition.getCPDefinitionId(), "getProduct",
_cpDefinitionModelResourcePermission);

if (action == null) {
return null;
}

String href = action.get("href");

action.put(
Expand All @@ -770,6 +778,10 @@ private Map<String, Map<String, String>> _getActions(
"UPDATE", cpDefinition.getCPDefinitionId(), "patchProduct",
_cpDefinitionModelResourcePermission);

if (action == null) {
return null;
}

String href = action.get("href");

action.put(
Expand Down

0 comments on commit b535d7c

Please sign in to comment.