Foros de discusión

Extending MessageBoards portlet - hide unauthorized categories

David Hay, modificado hace 16 años.

Extending MessageBoards portlet - hide unauthorized categories

Junior Member Mensajes: 30 Fecha de incorporación: 3/01/08 Mensajes recientes
I'm trying to modify the MessageBoards portlet to hide categories from unauthorized users.

I'd hoped be able to just modify the jsp with a permission check, but although that works, the thread counts etc. still include the unauthorized categories.

I'm new to Liferay's code base, but It looks like the relevant classed (eg MBCategoryLocalServiceUtil) are autogenerated by ServiceBuilder? What would be the best place to add the permissioning check for the calls to get the Threads and Messages counts etc.?

And, yes, when updated, I'll try to contribute it back to the community.

cheers,

David
thumbnail
Roman Hoyenko, modificado hace 16 años.

RE: Extending MessageBoards portlet - hide unauthorized categories

Liferay Master Mensajes: 878 Fecha de incorporación: 8/10/07 Mensajes recientes
You might want to read this wiki article:

http://wiki.liferay.com/index.php/Service_Builder
David Hay, modificado hace 16 años.

RE: Extending MessageBoards portlet - hide unauthorized categories

Junior Member Mensajes: 30 Fecha de incorporación: 3/01/08 Mensajes recientes
Yep, thx, I figured that out after I posted.

I'm still trying to work out how to access the permissions at the Hibernate level, though, as per my later post.

Any ideas?

cheers,

David