MCPcopy
hub / github.com/tinode/chat / accessFor

Method accessFor

server/topic.go:3862–3864  ·  view source on GitHub ↗
(authLvl auth.Level)

Source from the content-addressed store, hash-verified

3860}
3861
3862func (t *Topic) accessFor(authLvl auth.Level) types.AccessMode {
3863 return selectAccessMode(authLvl, t.accessAnon, t.accessAuth, getDefaultAccess(t.cat, true, false))
3864}
3865
3866// subsCount returns the number of topic subscribers. This method is different from subCnt with respect to channels:
3867// * subsCount counts subscribers + attached channel users.

Callers 2

thisUserSubMethod · 0.95
anotherUserSubMethod · 0.95

Calls 2

selectAccessModeFunction · 0.85
getDefaultAccessFunction · 0.85

Tested by

no test coverage detected