canEditChannel
Utility to determine if User has privileges to edit a channel
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
channel Required | IChannel | ||
user Optional | IUser | IDiscussionsUser | {} | |
updateData Optional | IUpdateChannel |
!!! only include for API V2 updates |
Returns
boolean
Function defined in discussions/src/utils/channels/can-edit-channel.ts:14