0

I've created a Regular User Role in my Liferay Portal titled Announcement Poster - the purpose of this role is to give all normal, non-administrative users the ability to add only the Announcement and the Alert Liferay out-of-the-box portlets to a page, as well as modify and delete those portlets as needed.

According to this post pertaining to Liferay 6.1, this can be done very simply by defining a Role's permissions and I've seen other users have success with the method, however in Liferay 6.2 I cannot achieve this - With my current settings, the user can still see the Edit and Preview options as well as the Portlet Configuration option. I simply want only the Add option to be displayed to a user assigned to this role.

enter image description here

My defined role permissions are as follows:

enter image description here So far I've tried many combinations of Site, Site Setting & Application permissions but can't achieve the desired outcome; has anyone had any luck with this or a similar situation?

Subsequent Liferay forum post https://www.liferay.com/community/forums/-/message_boards/message/43455741

Community
  • 1
  • 1
Clay Banks
  • 4,483
  • 15
  • 71
  • 143

1 Answers1

0

I don't think it is a Liferay bug, simply those buttons are not under permission system. You can hide them via css, or better, you can hook the dockbar JSP and render them with your own conditions.

EDIT:

When I say "those buttons are not under permission system" i mean singly.

Marco Mercuri
  • 1,117
  • 9
  • 17
  • I wouldn't want to hide other icons because administrative users need to see them or hook the jsp because that could cause inconsistencies later on (I.e., a user is an Announcement Poster & then granted "Page Theme Modifier" - in which case they would then need to see the Edit button. The condition could grow rather large) – Clay Banks Oct 02 '14 at 12:30