...
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes | the username Username or userkey of the user. |
comment_id | Number | Yes | the id Id of the comment. |
Note |
---|
The look-up is first made after the userkey, then after the username. |
Return type
boolean (true/false)
A "true" return value means that the user can see the comment.
...
Code Block |
---|
userHasAccessToComment("admin","10000"); |
Returns: TrueReturns "true" if the user "admin" can see the comment with id "10000" , Falseand "false" if the user cannot see the comment.
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|