invalUserChannels invalidates a user's computed channels for the specified collections
(ctx context.Context, username string, collections base.ScopeAndCollectionNames, invalSeq uint64)
| 1934 | |
| 1935 | // invalUserChannels invalidates a user's computed channels for the specified collections |
| 1936 | func (dbCtx *DatabaseContext) invalUserChannels(ctx context.Context, username string, collections base.ScopeAndCollectionNames, invalSeq uint64) { |
| 1937 | authr := dbCtx.Authenticator(ctx) |
| 1938 | if err := authr.InvalidateChannels(username, true, collections, invalSeq); err != nil { |
| 1939 | base.WarnfCtx(ctx, "Error invalidating channels for user %s: %v", base.UD(username), err) |
| 1940 | } |
| 1941 | } |
| 1942 | |
| 1943 | // invalRoleChannels invalidates a role's computed channels for the specified collections |
| 1944 | func (dbCtx *DatabaseContext) invalRoleChannels(ctx context.Context, rolename string, collections base.ScopeAndCollectionNames, invalSeq uint64) { |
nothing calls this directly
no test coverage detected