Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUserAuthorOfMessage ¶
func IsUserAuthorOfMessage(client *elastic.Client, chatroomID string, messageID string, userID string) error
IsUserAuthorOfMessage allows to check wether the given user is the author of the message. It requires an elastic client, the id of the chatroom, the concerned message, and the id of the user. Will return an error if the user is not authorized.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.