canReadFromChannel

Function

Utility to determine whether User can view posts belonging to Channel

  • canReadFromChannel(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:41