3756-client_address_isLogifloraAllowed #930

Merged
joan merged 6 commits from 3756-client_address_isLogifloraAllowed into dev 2022-04-08 07:49:46 +00:00
Member
No description provided.
alexm added the
CR / Tests passed
label 2022-04-06 12:59:18 +00:00
alexm added 3 commits 2022-04-06 12:59:20 +00:00
gitea/salix/pipeline/head This commit looks good Details
afc03fc60e
feat(client_address): add LogifloraIsAllowed
gitea/salix/pipeline/head This commit looks good Details
bcbe264f0a
refactor(client_updateAddress): refactor ctx variable
gitea/salix/pipeline/head This commit looks good Details
e44de0246d
extract ids to variable
joan requested changes 2022-04-08 06:29:50 +00:00
@ -85,2 +89,4 @@
const args = ctx.args;
const userId = ctx.req.accessToken.userId;
const myOptions = {};
const isSalesAssistant = await Self.app.models.Account.hasRole(userId, 'salesAssistant', myOptions);
Contributor

Make use of models property

Make use of models property
alexm marked this conversation as resolved
@ -88,3 +94,4 @@
if (typeof options == 'object')
Object.assign(myOptions, options);
if (ctx.args.isLogifloraAllowed && !isSalesAssistant)
Contributor

Make use of args property

Make use of args property
alexm marked this conversation as resolved
alexm added 2 commits 2022-04-08 07:02:41 +00:00
alexm requested review from joan 2022-04-08 07:03:03 +00:00
joan added 1 commit 2022-04-08 07:29:12 +00:00
joan approved these changes 2022-04-08 07:49:38 +00:00
joan merged commit 321d684f34 into dev 2022-04-08 07:49:46 +00:00
joan deleted branch 3756-client_address_isLogifloraAllowed 2022-04-08 07:49:46 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#930
No description provided.