fix(TicketSaleMoreActions): hotFix isClaimable #1055
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1055
Loading…
Reference in New Issue
No description provided.
Delete Branch "hotFix_ticketSale_isClaimable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -21,3 +21,3 @@
function hasAny(roles) {
const roleStore = state.getRoles();
if (typeof roles === 'string') roles = [roles];
Realmente fallaba por esto (solo aceptaba arrays y se le pasaba string)
@ -60,3 +60,2 @@
landedPlusWeek.setDate(landedPlusWeek.getDate() + 7);
const hasClaimManagerRole = role.hasAny('claimManager');
return landedPlusWeek >= Date.vnNew() || hasClaimManagerRole;
const createAfterDeadline = acl.hasAny([
Usar
acl.hasAny
es un mejor enfoque, querole.hasAny