Fórum
Default Web Content View Permissions?
Adam Spence, modificado 11 Anos atrás.
Default Web Content View Permissions?
New Member Postagens: 21 Data de Entrada: 26/08/11 Postagens Recentes
Hello,
In the Permissions section of the Web Content Article Edit/Create screen, there is a dropdown with 3 options for "Viewable by" : "Anyone (Guest Role)", "Site Members", and "Owner". Currently the default value on our dev server is set to "Site Members"; we would like to change the default to "Anyone (Guest Role)". How can we do this?
Cheers,
Adam
In the Permissions section of the Web Content Article Edit/Create screen, there is a dropdown with 3 options for "Viewable by" : "Anyone (Guest Role)", "Site Members", and "Owner". Currently the default value on our dev server is set to "Site Members"; we would like to change the default to "Anyone (Guest Role)". How can we do this?
Cheers,
Adam
Steve Clement, modificado 11 Anos atrás.
RE: Default Web Content View Permissions?
New Member Postagens: 4 Data de Entrada: 13/10/12 Postagens Recentes
Has anyone solved this issue yet? I am running into the same issue. I would like content created by a user with a custom role to have that content be available to guests as a default.
Is there a portal.properties that can be set? Or any other way to get this to default to Anyone rather than Site Members?
Is there a portal.properties that can be set? Or any other way to get this to default to Anyone rather than Site Members?
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Default Web Content View Permissions?
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Check the following file in liferay source. Portlet name 15 the the web content portlet.
\portal-impl\src\resource-actions\journal.xml
\portal-impl\src\resource-actions\journal.xml
Steve Clement, modificado 11 Anos atrás.
RE: Default Web Content View Permissions?
New Member Postagens: 4 Data de Entrada: 13/10/12 Postagens Recentes
I have looked there, but I don't see how to change things so that newly created web content always defaults to Guest view permissions.
Michaël CORLOU, modificado 10 Anos atrás.
RE: Default Web Content View Permissions?
New Member Postagens: 6 Data de Entrada: 18/04/13 Postagens Recentes
Have you the solution for your problem ? i've the same issue.
thx for a reply
thx for a reply
Alessandro Lachina, modificado 9 Anos atrás.
RE: Default Web Content View Permissions?
New Member Postagens: 24 Data de Entrada: 12/06/13 Postagens Recentes
Same problem to us. Any news?
Rahul Pande, modificado 9 Anos atrás.
RE: Default Web Content View Permissions?
Expert Postagens: 310 Data de Entrada: 07/07/10 Postagens RecentesAlessandro Lachina:
Same problem to us. Any news?
This issue seems to be resolved in Liferay 6.2 version. Can you please specify Liferay version. Please find the attached screen shot.
Thanks
Rahul Pande
Alessandro Lachina, modificado 9 Anos atrás.
RE: Default Web Content View Permissions?
New Member Postagens: 24 Data de Entrada: 12/06/13 Postagens Recentes
We are in 6.2 ga3.
We have the same situation of your screenshot but we need to change the default to Owner
We have the same situation of your screenshot but we need to change the default to Owner
Rahul Pande, modificado 9 Anos atrás.
RE: Default Web Content View Permissions?
Expert Postagens: 310 Data de Entrada: 07/07/10 Postagens Recentes
Hi,
It seems you have to customize page.jsp of input permissions tag. page.jsp#L78 returns guest role, so by default permissions dropdown selects the guest role. For more information please have a look at InputPermissionsParamsTag#145
Hope this helps
Rahul Pande
It seems you have to customize page.jsp of input permissions tag. page.jsp#L78 returns guest role, so by default permissions dropdown selects the guest role. For more information please have a look at InputPermissionsParamsTag#145
Hope this helps
Rahul Pande
ignacio fernandez, modificado 8 Anos atrás.
RE: Default Web Content View Permissions?
New Member Postagens: 3 Data de Entrada: 29/04/15 Postagens RecentesSo there is no way to set the guest option as default, neither using a structure nor template?
I tried setting the default options with a structure but the permissions options apparently don't store in the database.
Anyone has resolved this issue?
Alessandro Lachina, modificado 8 Anos atrás.
RE: Default Web Content View Permissions?
New Member Postagens: 24 Data de Entrada: 12/06/13 Postagens Recentes
I've replaced:
String inputPermissionsViewRole = ParamUtil.getString(request, "inputPermissionsViewRole", InputPermissionsParamsTag.getDefaultViewRole(modelName, themeDisplay));
at line 78 as you suggested with :
String inputPermissionsViewRole = ParamUtil.getString(request, "inputPermissionsViewRole", RoleConstants.OWNER);
to make the Owner role as default.
Graphically it seems to works, but completing any publication it assign always Site Member role..
Any ideas?
String inputPermissionsViewRole = ParamUtil.getString(request, "inputPermissionsViewRole", InputPermissionsParamsTag.getDefaultViewRole(modelName, themeDisplay));
at line 78 as you suggested with :
String inputPermissionsViewRole = ParamUtil.getString(request, "inputPermissionsViewRole", RoleConstants.OWNER);
to make the Owner role as default.
Graphically it seems to works, but completing any publication it assign always Site Member role..
Any ideas?