Skip to content

basalt / comments/src / defaultCommentPolicy

Function: defaultCommentPolicy() ​

> defaultCommentPolicy(action, target, user): boolean

Defined in: comments/src/plugin.ts:91

The policy used when authorize is not given: any authenticated user of the tenant may read a thread and post to it; only a comment's author may edit, delete, resolve or reopen it.

Parameters ​

action ​

CommentAction

target ​

CommentTarget

user ​

CommentRouteUser

Returns ​

boolean

Released under the MIT License.