Hi
I have problem with permissionChecker.
For example:
I define in def.xml
<portlet-resource>
.....
<supports>
<action-key>ADD_TO_PAGE</action-key>
......
</portlet-resource>
In my portlet .jsp I have:
<c:if test="permissionChecker.hasPermission(scopeGroupId, portletDisplay.getId(), scopeGroupId, MyKeys.ACTION_SEND_EMAIL) %>">
BUTTON TEST SEND EMAIL
</c:if>
If a set permision on cotrol-panel->Role->define permision-> my portlet-> check MyKeys.ACTION_SEND_EMAIL) and save. Then works well.
But if I want to set only by portlet->configuration - check for role MyKeys.ACTION_SEND_EMAIL) it's not working.
Anybody can give me advice what I'm doing wronk?
Regards
Darek
Please sign in to flag this as inappropriate.