canEditPost
Utility to determine if User has privileges to modify a post
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
post Required | IPost | ||
user Optional | IUser | IDiscussionsUser | {} | |
channel Required | IChannel |
Returns
boolean
Function defined in discussions/src/utils/posts/can-edit-post.ts:34