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

NameTypeRequiredDescription
userIdstringYesID of the user whose permissions we wish to check
topicstringYesID of the topic to check