Role based access on buttons

Hi,

I have a query result portlet. I want a functionality that user should be able to select a particular row from the result portlet and click on a button. This button should not be visible if the user does’nt have the particular role.

How can this be achieved?

thanks in advance,
Ninad

There is an access control panel which is sensitive to the user role/group information.