mirror of
https://github.com/vale981/Vulcan
synced 2025-03-12 13:36:37 -04:00
8 lines
264 B
JavaScript
8 lines
264 B
JavaScript
![]() |
import { addCallback } from 'meteor/vulcan:core';
|
||
|
|
||
|
function makeCustomer (modifier, user, charge) {
|
||
|
modifier.$set.groups = modifier.$set.groups ? [...user.groups, 'customers'] : ['customers'];
|
||
|
return modifier;
|
||
|
}
|
||
|
|
||
|
addCallback('users.charge.sync', makeCustomer);
|