If a channel list contains the all-channel wildcard, replace it with all the user's accessible channels.
(channels base.Set)
| 695 | |
| 696 | // If a channel list contains the all-channel wildcard, replace it with all the user's accessible channels. |
| 697 | func (user *userImpl) expandWildCardChannel(channels base.Set) (base.Set, error) { |
| 698 | return user.expandCollectionWildCardChannel(base.DefaultScope, base.DefaultCollection, channels) |
| 699 | } |
| 700 | |
| 701 | func (user *userImpl) expandCollectionWildCardChannel(scope, collection string, channels base.Set) (base.Set, error) { |
| 702 | if channels.Contains(ch.AllChannelWildcard) { |
nothing calls this directly
no test coverage detected