canModifyPostStatus

Function

Determines if the given user has sufficient privileges to modify a post's status

  • canModifyPostStatus(channel: IChannel, user: IUser) : boolean

Parameters

Parameter Type Default Notes
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/index.ts:66