Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 933
Boat Avatar asked Jan 21 '26 02:01

Boat


1 Answers

The "Add New" Button only appears when a user has permissions to create one of the assets displayed in AssetPublisher. It seems that your users/power users have permission to create content - this can be WebContent, Blogs or others. For example this typically happens in their own personal site where they have write permissions by default.

You can either remove that permission from the Power User, use standard users (there has been a recent blogpost about the difference between the two) or, if the permission is ok, just the UI should disappear either override the AssetPublisher UI with a hook (remove the button there) or use the simple CSS-trick ("display:none") in the portlet's "Look&Feel/Advanced Styling" section

like image 158
Olaf Kock Avatar answered Jan 24 '26 18:01

Olaf Kock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!