ChannelPermission

Class

Constructors

Constructor Parameters

Parameter Type Default Notes
channelAcl Required IChannelAclPermission[]
creator Required string

Methods

canCreateChannel

Class Method

Parameters

Parameter Type Default Notes
user Required IDiscussionsUser

Returns

boolean

canModerateChannel

Class Method

Parameters

Parameter Type Default Notes
user Required IDiscussionsUser

Returns

boolean

canPostToChannel

Class Method

Parameters

Parameter Type Default Notes
user Required IDiscussionsUser

Returns

boolean

canReadChannel

Class Method

Parameters

Parameter Type Default Notes
user Required IDiscussionsUser

Returns

boolean

Class defined in discussions/src/utils/channel-permission.ts:23