Fórumok

Why is the default to show access denied in a portlet with no permissions?

thumbnail
Cameron McBride, módosítva 12 év-val korábban

Why is the default to show access denied in a portlet with no permissions?

Expert Bejegyzések: 269 Csatlakozás dátuma: 2011.02.08. Legújabb bejegyzések
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.
thumbnail
Ravi Kumar Gupta, módosítva 12 év-val korábban

RE: Why is the default to show access denied in a portlet with no permissio

Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
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. emoticon
thumbnail
Hitoshi Ozawa, módosítva 12 év-val korábban

RE: Why is the default to show access denied in a portlet with no permissio

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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.