Skip to content

Commit

Permalink
Merge pull request #298 from mikoscz/fix-has-permissions
Browse files Browse the repository at this point in the history
Fix Reaction.hasPermission method
  • Loading branch information
kieckhafer authored Aug 4, 2020
2 parents 1f617dd + 73352a2 commit a4a0f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imports/plugins/core/core/server/Reaction/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default {
const groupPermissionsForShop = groups.filter((grp) => grp.shopId === shopId).map((grp) => grp.permissions);
const flattenedGroupPermissionsForShop = _.flattenDeep(groupPermissionsForShop);
const uniquePermissionsForShop = _.uniq(flattenedGroupPermissionsForShop);
accountPermissions[group] = uniquePermissionsForShop;
accountPermissions[shopId] = uniquePermissionsForShop;
});
}

Expand Down

0 comments on commit a4a0f34

Please sign in to comment.