Skip to end of banner
Go to start of banner

userHasAccessToComment

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Syntax

userHasAccessToComment(userNameOrKey, commentId)

Description

 Verifies if a comment is visible for an 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

userHasAccessToComment("jdoe", 651);

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

See also

  • No labels