isCollectionVisible checks if a collection ID is in the visible set. If visibleIDs is nil, all collections are visible.
(collectionID string, visibleIDs []string)
| 2252 | // isCollectionVisible checks if a collection ID is in the visible set. |
| 2253 | // If visibleIDs is nil, all collections are visible. |
| 2254 | func isCollectionVisible(collectionID string, visibleIDs []string) bool { |
| 2255 | if visibleIDs == nil { |
| 2256 | return true |
| 2257 | } |
| 2258 | for _, id := range visibleIDs { |
| 2259 | if id == collectionID { |
| 2260 | return true |
| 2261 | } |
| 2262 | } |
| 2263 | return false |
| 2264 | } |
| 2265 | |
| 2266 | // filterUserGrantsForCaller narrows collGrants/itemGrants — the TARGET |
| 2267 | // user's grants, already loaded by the caller — down to what the CALLER can |
no outgoing calls
no test coverage detected