Skip to content

Commit

Permalink
remove rai timestamp condition for manual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Haube committed Oct 31, 2023
1 parent d2c2580 commit c0edbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/api/handlers/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const packageActionsForResult = (
result: ItemResult
): Action[] => {
const actions = [];
if (isCmsUser(user) && result._source.raiReceivedDate) {
if (isCmsUser(user)) {
actions.push(Action.ENABLE_RAI_WITHDRAW);
}
return actions;
Expand All @@ -54,7 +54,7 @@ export const getItemData = async (event: APIGatewayEvent) => {
body.id
)) as ItemResult;

// Get available actions based on user's rol/* */e and result source
// Get available actions based on user's role and result source
result.actions = packageActionsForResult(userAttr, result);

if (
Expand Down

0 comments on commit c0edbc5

Please sign in to comment.