留言板
requirement
There is a requirement from the client that out of 4 portlets that you have written only 2 should be visible to a particular category of users. How will you achieve that? What if some fields in the remaining 2 portlets have also to be controlled based on user role
You can control user portlet visibility by defining special roles, assigning the roles to users that should be able to see the portlet, then on the portlet remove the guest view permission and grant the view permission to the new role.
Internal portlet changes you would want to use a similar sort of role check whether to include the information on the generated page or not.
Internal portlet changes you would want to use a similar sort of role check whether to include the information on the generated page or not.