Only show delete button for events in the future
This commit is contained in:
parent
1f0cc76d46
commit
ba4932958c
@ -607,7 +607,9 @@ export default function () {
|
||||
<Button
|
||||
alignSelf="center"
|
||||
display={
|
||||
event.created_by === user_id || can_approve
|
||||
(event.created_by === user_id &&
|
||||
event.day > new Date().getUTCDate()) ||
|
||||
can_approve
|
||||
? undefined
|
||||
: "none"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user