fix(TicketSaleMoreActions): hotFix isClaimable #1055

Merged
alexm merged 1 commits from hotFix_ticketSale_isClaimable into master 2024-12-09 07:00:59 +00:00
Member
No description provided.
alexm added 1 commit 2024-12-09 06:57:17 +00:00
gitea/salix-front/pipeline/pr-master This commit looks good Details
88863a215a
fix(TicketSaleMoreActions): hotFix isClaimable
alexm reviewed 2024-12-09 06:57:41 +00:00
@ -21,3 +21,3 @@
function hasAny(roles) {
const roleStore = state.getRoles();
if (typeof roles === 'string') roles = [roles];
Author
Member

Realmente fallaba por esto (solo aceptaba arrays y se le pasaba string)

Realmente fallaba por esto (solo aceptaba arrays y se le pasaba string)
alexm reviewed 2024-12-09 06:58:10 +00:00
@ -60,3 +60,2 @@
landedPlusWeek.setDate(landedPlusWeek.getDate() + 7);
const hasClaimManagerRole = role.hasAny('claimManager');
return landedPlusWeek >= Date.vnNew() || hasClaimManagerRole;
const createAfterDeadline = acl.hasAny([
Author
Member

Usar acl.hasAny es un mejor enfoque, que role.hasAny

Usar `acl.hasAny` es un mejor enfoque, que `role.hasAny`
carlossa approved these changes 2024-12-09 07:00:43 +00:00
alexm merged commit 8a1812dbb0 into master 2024-12-09 07:00:59 +00:00
alexm deleted branch hotFix_ticketSale_isClaimable 2024-12-09 07:00:59 +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-front#1055
No description provided.