English (United Kingdom)
English (United States)
2. Using Liferay
(Opens New Window)
Mark as an Answer
Adding portlet permission (LEP 5.1.2)
November 27, 2008 3:22 AM
Rank: Junior Member
Join Date: March 1, 2007
Liferay permission and security model is great!
I created a sample portlet on which I want to define a portlet permission (not a model permission).
Here is the XML file, which is successfully read by Liferay at initialization time.
As explained in the portlet development guide, I should be able to see the "CHECK_ROLE" in the administration interface, in addition to VIEW and CONFIGURATION (see the attached file).
Portlet development guide:
On the portlet level, no code needs to be written in order to have the permission system work for your
custom portlet. Your custom portlet will automatically have all the permission features. If you’ve
defined any custom permissions (supported actions) in your portlet-resource tag in section 3.1, those are
automatically added to a list of permissions and users can readily choose them.
I do not understand what is missing...
Thank you for your help
Sign in to vote.
Please sign in to flag this as inappropriate.