mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-06 20:51:48 +02:00
🐛 Allow admin to delete any comment (#715)
This commit is contained in:
parent
f65934216c
commit
d8b4e86a90
2 changed files with 8 additions and 3 deletions
|
@ -19,6 +19,7 @@ export const usePermissions = () => {
|
|||
const { participants } = useParticipants();
|
||||
const isClosed = poll.closed === true || poll.event !== null;
|
||||
return {
|
||||
isUser: (userId: string) => userId === user.id || userId === context.userId,
|
||||
canAddNewParticipant: !isClosed,
|
||||
canEditParticipant: (participantId: string) => {
|
||||
if (isClosed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue