Versions Compared

Key

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

Syntax

userHasAccessToComment(userNameOrKey, commentId)

Description

Excerpt

 Verifies if Verifies whether a comment is visible for an a user.

Parameters

Parameter name

Type

Required

Description

userNameOrKey

stringYesUser name or key of a user to check access for
.
commentIdnumberYesId of the comment to verify access to
.

Return type

boolean (true/false)

Returns true if the specified user has access to the specified comment. Returns false otherwise.

Example

Example 1

Code Block
userHasAccessToComment("jdoe", 651);

Checks if user the "jdoe" user has access to the comment with id 651.

See also

...