Fórum
Regarding webcontent
vasudha karri, modificado 11 Anos atrás.
Regarding webcontent
New Member Postagens: 17 Data de Entrada: 03/05/12 Postagens Recentes
Hi
1)I created a page and added web content display portlet two times to that page
2)Each webcontent display show different web content
3)i set permissions to the first webcontent display portlet using configuration so that it can be viewed by one role(eg:user_role_1) and to the other display another role (eg:user_role_2)and assigned those roles to two different users
My problem is when i login as user having one of the above role i can see the webcontent to which he has permissions to view but the same page is also showing the other webcontent display as "You do not have the roles required to access this portlet.". I dont want to display that. i just need to display only content for which he has view permission and other webcontent should be hidden
PFA for reference
1)I created a page and added web content display portlet two times to that page
2)Each webcontent display show different web content
3)i set permissions to the first webcontent display portlet using configuration so that it can be viewed by one role(eg:user_role_1) and to the other display another role (eg:user_role_2)and assigned those roles to two different users
My problem is when i login as user having one of the above role i can see the webcontent to which he has permissions to view but the same page is also showing the other webcontent display as "You do not have the roles required to access this portlet.". I dont want to display that. i just need to display only content for which he has view permission and other webcontent should be hidden
PFA for reference
Anexos:
Tejas Kanani, modificado 11 Anos atrás.
RE: Regarding webcontent
Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
Hi Vasudha,
Just add below properties in portal-ext.properties and restart the server. It will not show you that message("You do not have the roles required to access this portlet.").
Hope this is what you are looking for.
Thanks,
Tejas
Just add below properties in portal-ext.properties and restart the server. It will not show you that message("You do not have the roles required to access this portlet.").
#
# Set this to true if users are shown that they do not have access to a
# portlet. The portlet init parameter "show-portlet-access-denied" will
# override this setting.
#
layout.show.portlet.access.denied=true
Hope this is what you are looking for.
Thanks,
Tejas
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Regarding webcontent (Resposta)
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Set the property below in ROOT\WEB-INF\classes\portal-ext.properties file. You'll have to create the portal-ext.properties file yourself.
layout.show.portlet.access.denied=false
What I've done is create a hook to implement commonly use default settings and jsp modifications. This way, I'll be able to get my default settings by just deploying the hook.
layout.show.portlet.access.denied=false
What I've done is create a hook to implement commonly use default settings and jsp modifications. This way, I'll be able to get my default settings by just deploying the hook.
vasudha karri, modificado 11 Anos atrás.
RE: Regarding webcontent
New Member Postagens: 17 Data de Entrada: 03/05/12 Postagens Recentes
thanks for the reply ..it worked fine