I am trying to block a user from accessing certain content/blocks if they do not have permission to view content of a certain type within a group.
I have the user ID and the group ID, but how do I check the user's permissions for that group? I can't find any documentation.
To start, how would I print all the permissions for a given user and group?