userIsReader returns true if the user (specified by `uid`) may read the given topic.
(uid types.Uid)
| 245 | |
| 246 | // userIsReader returns true if the user (specified by `uid`) may read the given topic. |
| 247 | func (t *Topic) userIsReader(uid types.Uid) bool { |
| 248 | modeWant, modeGiven := t.getPerUserAcs(uid) |
| 249 | return (modeGiven & modeWant).IsReader() |
| 250 | } |
| 251 | |
| 252 | // prepareBroadcastableMessage sets the topic field in `msg` depending on the uid and subscription type. |
| 253 | func (t *Topic) prepareBroadcastableMessage(msg *ServerComMessage, uid types.Uid, isChanSub bool) { |
no test coverage detected