canCreateChannel

Function

Utility to determine whether User can create Channel of provided IChannel properties

  • canCreateChannel(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:80