Fórum
Why is the default to show access denied in a portlet with no permissions?
Cameron McBride, modificado 12 Anos atrás.
Why is the default to show access denied in a portlet with no permissions?
Expert Postagens: 269 Data de Entrada: 08/02/11 Postagens Recentes
If you permission a portlet so that some users do not have access to it they will see a big error in the portlet telling them that. Obviously that is pretty ugly to the end user so I'm sure everyone uses the properties option layout.show.portlet.access.denied to hide the portlet.
What I would like to understand is why has Liferay chosen to have it this way instead of hiding the portlet by default. I am sure they have a reason for designing it this way. Any ideas? I would anticipate more user complaints and reports if they see a big error in a portlet rather than the portlet being hidden.
What I would like to understand is why has Liferay chosen to have it this way instead of hiding the portlet by default. I am sure they have a reason for designing it this way. Any ideas? I would anticipate more user complaints and reports if they see a big error in a portlet rather than the portlet being hidden.
Ravi Kumar Gupta, modificado 12 Anos atrás.
RE: Why is the default to show access denied in a portlet with no permissio
Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Well Liferay can only tell you exact answer. But even in my previous organization(other softwares/sites), I have seen links will be there but it will show access denied and then a link to request access.
Hitoshi Ozawa, modificado 12 Anos atrás.
RE: Why is the default to show access denied in a portlet with no permissio
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
I think it's because it decrease number of support question. By making display permission error a default, if permission setting mistakes can be more easily detected. If the default was not to display an error message, users will probably complain or submit question when there is a permission error and a portlet does not show.