canModifyPost

Function

Determines if the given user has sufficient privileges to modify the given post

  • canModifyPost(post: IPost, channel: IChannel, user: IUser) : boolean

Parameters

Parameter Type Default Notes
post Required IPost

An IPost object

channel Required IChannel

An IChannel object

user Required IUser

An IUser object

Returns

true if the user can modify the post

boolean

Function defined in discussions/src/utils/posts.ts:74