diff --git a/imports/plugins/core/accounts/server/init.js b/imports/plugins/core/accounts/server/init.js index 7662e5523cd..8569bc8eaf0 100644 --- a/imports/plugins/core/accounts/server/init.js +++ b/imports/plugins/core/accounts/server/init.js @@ -1,6 +1,7 @@ import Hooks from "@reactioncommerce/hooks"; import Reaction from "/imports/plugins/core/core/server/Reaction"; import { Accounts, Groups } from "/lib/collections"; +import { ENROLL_URI_BASE } from "./util/getDataForEmail"; // set default admin user's account as "owner" Hooks.Events.add("afterCreateDefaultAdminUser", (user) => { @@ -16,6 +17,6 @@ Hooks.Events.add("afterCoreInit", () => { Reaction.addRolesToGroups({ allShops: true, groups: ["guest", "customer"], - roles: ["account/verify", "reset-password"] + roles: ["account/verify", "reset-password", ENROLL_URI_BASE] }); });