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

Version 1 Next »

Syntax:

userHasAccessToComment(user, comment_id)

Description:

Verifies if a comment is visible for an user.

Parameters:

Parameter nameTypeRequiredDescription
userStringYesthe username or userkey of the user
comment_idNumberYesthe id of the comment

The look-up is first made after the userkey, then after the username.

Return type:

boolean (true/false)

true return value means that the user can see the comment.

Example:

 

userHasAccessToComment("admin","10000");

Returns: True if the user "admin" can see the comment with id "10000", False if the user cannot see the comment.

See Also:



  • No labels