We will need to use this logic at permission check sites (eg threadMemberHasPermission/threadHasPermission/etc). Eventually we'll consolidate so we use one hook for everything, but for now we're going to use this in a couple places so we can first remove usage from getCurrentUser.
Depends on D11741
Can we extract this to its own line? Similar to how we want await to be visible, I think it's good for hooks to be as well