Foren

How hide + icon for Document and media Portlet based on the User roles.

Mohammed Sulaiman, geändert vor 6 Jahren.

How hide + icon for Document and media Portlet based on the User roles.

New Member Beiträge: 18 Beitrittsdatum: 07.07.17 Neueste Beiträge
I have created a site and drop the document and media portlet.
I have created a site role "Member_R" with only read permission,similarly "Member_RW" role with write permissions.
Whenever user login who has a "Member_R" role ,then i need to hide the '+' icon in the title bar of the Document and media portlet,since because the user has the only read permissions.
For the user with the "Member_RW" role ,i need to show the '+' icon in the title bar of the portlet.
I have also uncheck the permission of the user role ,and also uncheck the permission for the guest role.
But when the user logs in with the "Member_R" role, he still can see the '+' icon .

Iam using Liferay DXP.
thumbnail
ANKIT SRIVASTAVA, geändert vor 6 Jahren.

RE: How hide + icon for Document and media Portlet based on the User role

Junior Member Beiträge: 76 Beitrittsdatum: 02.02.11 Neueste Beiträge
I am also facing the same. It seems portlet topper actions does not respect Liferay's Permission system and Site member able to see everything.

Reported Issue:
https://issues.liferay.com/browse/LPS-76007

Thanks,
Ankit
Mohammed Sulaiman, geändert vor 6 Jahren.

RE: How hide + icon for Document and media Portlet based on the User role

New Member Beiträge: 18 Beitrittsdatum: 07.07.17 Neueste Beiträge
Thanks for your help @ANKIT SRIVASTAVA.
thumbnail
Olaf Kock, geändert vor 6 Jahren.

RE: How hide + icon for Document and media Portlet based on the User role

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
See also LPS-75747, I've linked this one from LPS-76007 as well