How to remove Add New button in Publisher Asset for Power User?

I need to remove the Add New button from the Publisher Asset portlet for the Power User role in Liferay 6.1. How should I do it. Please, help.

+3


source to share


1 answer


The Add New button appears only if the user has permission to create one of the assets displayed in the AssetPublisher. It seems that your users / power users have permission to create content - it could be WebContent, blogs or others. For example, this usually happens on their own personal site where they have write permissions by default.



You can remove this permission from Power User, use standard users (there was a recent blog blog about the difference between the two) or if the permission is ok, only the UI should be gone, or override the AssetPublisher interface with a hook (remove the button there), or use simple CSS trick ("display: none") in "Look & Feel / Advanced Styling" portlet

+2


source







All Articles