Hi,
I've written a set of pages for a new block. In one page I would like to display a link only for a specific role (let's say the teacher) and not to other roles (let's say the students).
What do you think is the best way to do it? Using get_user_roles() and checking if the user has the teacher (or higher) role, or defining a new capability (for my block? for the specific page?) and then verifying it for the user? Which are the main advantages/disadvantages of these strategies?
Thanks in Advance,
Ely