Liferay Symposium 2016 | Reserve your seat today.
4. Custom Theme Development
(Opens New Window)
Mark as an Answer
Embedded Portlet & User Role
November 21, 2009 3:54 PM
Rank: Regular Member
Join Date: April 23, 2009
I had a quick question. I developed a simple custom portlet (using the Plug-in SDK). Basically, its just a simple link that tells you if you have new messages and when you click it, redirects the page.
In my development environment, it was working fine, but when I promoted the code I would get the "You do have the proper roles for this portlet" exception. After digging around, I found that in my DEV environment, the default role association includes Power User, whereas my PROD environment its USER.
For a temporary fix, I gave everyone Power User and have this as a default role association for new users.
But I was wondering, where can I set that the Role user can access that portlet? I tried a few different things and none worked. Or can only Power Users get a ccess to custom portlets on the theme? I should note that when I put the same portlet on a page, it worked fine. So I don't think its a portlet configuration (which has all the roles anyway in the liferay-portlet.xml config file)
Sign in to vote.
Please sign in to flag this as inappropriate.