Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

Description

Excerpt

 Verifies if a comment is visible for an user.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

userHasAccessToComment(userNameOrKey, commentId)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Verifies whether a comment is visible for a user.

Verifies whether a comment is visible for a user.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

userNameOrKey

String

Yes

Return type

...

User name or key of a user to check access for

commentId

Number

Yes

Id of the comment to verify access to

Return Type

Boolean (true/false)

Example

Code Block
languagejs
userHasAccessToComment("jdoe", 651);

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "

...

user_

...

routines" and space = currentSpace ( )
labels

...

array_

...

routines