canDeletePost

Function

Utility to determine if User has privileges to delete a post

Parameters

Parameter Type Default Notes
post Required IPost
channel Required IChannel
user Optional IUser | IDiscussionsUser {}

Returns

boolean

Function defined in discussions/src/utils/posts/can-delete-post.ts:13