Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Cameron McBride
Why is the default to show access denied in a portlet with no permissions?
March 2, 2012 11:28 AM
Answer

Cameron McBride

Rank: Expert

Posts: 273

Join Date: February 8, 2011

Recent Posts

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.
Ravi Kumar Gupta
RE: Why is the default to show access denied in a portlet with no permissio
March 2, 2012 6:21 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1145

Join Date: June 23, 2009

Recent Posts

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
Hitoshi Ozawa
RE: Why is the default to show access denied in a portlet with no permissio
March 3, 2012 5:40 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

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.