Skip to content

Commit

Permalink
hide delete button for non-admin users after edit period expires
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Mar 16, 2024
1 parent e574318 commit 49f97c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function CommentActions({
)}
</>
)}
{(currentUser || admin) && deleteJSX}
{((currentUser && editDeadline !== undefined) || admin) && deleteJSX}
</div>
</div>
);
Expand Down

0 comments on commit 49f97c1

Please sign in to comment.