userHasAccessToTopic()
Overview
public boolean function userHasAccessToTopic(
required string userId
, required string topic
)
Returns whether or not the user has access to the given topic
Arguments
Name | Type | Required | Description |
---|---|---|---|
userId | string | Yes | ID of the user whose permissions we wish to check |
topic | string | Yes | ID of the topic to check |