diff --git a/client/modules/core/helpers/apps.js b/client/modules/core/helpers/apps.js index e08bf384de0..07b1ab4f77d 100644 --- a/client/modules/core/helpers/apps.js +++ b/client/modules/core/helpers/apps.js @@ -61,9 +61,6 @@ export function Apps(optionHash) { options.shopId = Reaction.getShopId(); } - // make sure audience is used for all calls to ReactionApps - options.audience = Roles.getRolesForUser(Meteor.userId(), Reaction.getShopId()); - // remove audience permissions for owner (still needed here for older/legacy calls) if (Reaction.hasOwnerAccess() && options.audience) { delete options.audience; diff --git a/imports/plugins/core/dashboard/client/containers/packageListContainer.js b/imports/plugins/core/dashboard/client/containers/packageListContainer.js index 0e553152b0a..5e8ed51b1ce 100644 --- a/imports/plugins/core/dashboard/client/containers/packageListContainer.js +++ b/imports/plugins/core/dashboard/client/containers/packageListContainer.js @@ -15,9 +15,10 @@ function handleShowPackage(event, app) { } function composer(props, onData) { - const settings = Reaction.Apps({ provides: "settings", enabled: true }) || []; + const audience = Roles.getRolesForUser(Meteor.userId(), Reaction.getShopId()); + const settings = Reaction.Apps({ provides: "settings", enabled: true, audience }) || []; - const dashboard = Reaction.Apps({ provides: "dashboard", enabled: true }) + const dashboard = Reaction.Apps({ provides: "dashboard", enabled: true, audience }) .filter((d) => typeof Template[d.template] !== "undefined") || []; onData(null, {