Skip to content

Commit

Permalink
Update cancel button to use cancel permission instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro-Vega committed Feb 6, 2025
1 parent 7bc21d6 commit 20a6779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/dataSubmissions/DataSubmissionActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const actionConfig: Record<ActionKey, ActionConfig> = {
},
Cancel: {
hasPermission: (user, submission) =>
hasPermission(user, "data_submission", "create", submission),
hasPermission(user, "data_submission", "cancel", submission),
statuses: ["New", "In Progress", "Rejected"],
},
};
Expand Down

0 comments on commit 20a6779

Please sign in to comment.