2020-06-23 15:06:30 -04:00
|
|
|
import factory from '../generated/factories/user';
|
2021-08-11 13:51:18 -07:00
|
|
|
import permissions from '../helpers/permissions';
|
2020-06-23 14:56:13 -04:00
|
|
|
|
2020-08-28 17:34:14 -04:00
|
|
|
export default factory.extend({
|
2021-08-11 13:51:18 -07:00
|
|
|
authorized_actions: () =>
|
2021-08-12 11:23:02 -07:00
|
|
|
permissions.authorizedActionsFor('user') || [
|
2021-08-11 13:51:18 -07:00
|
|
|
'no-op',
|
|
|
|
|
'read',
|
|
|
|
|
'update',
|
|
|
|
|
'delete',
|
2021-10-01 14:19:06 -04:00
|
|
|
'add-accounts',
|
|
|
|
|
'remove-accounts',
|
2021-08-11 13:51:18 -07:00
|
|
|
],
|
2021-03-04 15:47:38 -05:00
|
|
|
id: (i) => `user-${i}`,
|
2020-08-28 17:34:14 -04:00
|
|
|
});
|