Foros de discusión

Check permission after portlet was rendered

John Doe, modificado hace 11 años.

Check permission after portlet was rendered

New Member Mensajes: 13 Fecha de incorporación: 16/08/12 Mensajes recientes
Hi,
I am working on custom permissions in my simple portlet (created vaddin way emoticon ). I have created new permissions in resources.xml and they are working just fine. The only problem I have is the PermissionChecker instance - during portlet rendering it works just fine returning proper reponses for my custom permission. But when I use it after rendering (the same permission checker object I catched during rendering) it throws error com.liferay.portal.NoSuchResourceActionException also giving response as false to any asked permission (even the standard one, like VIEW). Why Permission Checker is not working after portlet was rendered? Is there any other way of checking permission insteed of using themeDisplay.getPermissionChecker().hasPermission(...) ????