canModifyChannel

Function

Utility to determine whether User can modify channel settings and posts belonging to Channel

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

Parameters

Parameter Type Default Notes
channel Required IChannel
user Required IUser

Returns

{boolean}

boolean

Function defined in discussions/src/utils/channels/index.ts:61