I have a lot of user-generated content that I want to restrict to only be viewed by 'in-network' peers. I was originally trying to use Organic Groups but it's way more functionality than I need and I couldn't use it across all the entities I wanted to. Also, I could never get the og_subgroups module to work right, and there's a hierarchical element to the rules, too.
If I just want to implement my own permissions logic, I'd use hook_node_grants
, right? Is there an equivalent for entities or other objects?