I have a block that I only want a specific role to see. Specifically, only the native manager role to see the block on the front page.
Is has_capability() the correct function? How to I appy it in this context?
You would need to prohibit access for all roles except the one required:
thank you, I missed the permissions link. Looking good on my end now.