English
Appearance
basalt / comments/src / defaultCommentPolicy
> defaultCommentPolicy(action, target, user): boolean
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.
authorize
CommentAction
CommentTarget
CommentRouteUser
basalt / comments/src / defaultCommentPolicy
Function: defaultCommentPolicy()
> defaultCommentPolicy(
action,target,user):booleanDefined in: comments/src/plugin.ts:91
The policy used when
authorizeis 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
CommentActiontarget
CommentTargetuser
CommentRouteUserReturns
boolean