Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Sina J
Security & Permissions
12 de octubre de 2010 9:03
Respuesta

Sina J

Ranking: New Member

Mensajes: 8

Fecha de incorporación: 1 de octubre de 2010

Mensajes recientes

Hi all,

I know how to use
1PermissionCheck
and
1hasPermission
method to check if someone has access to some resource. But what if I want to query all accessible recources?

Imagine I have a grid of my own model and I have already configured and set permissions for #VIEW action of each row. Now I want to populate the grid, but I don't want database to load records that are not viewable by the logged-in user.

What API method should I use if I want to have a list of accessible objects of a custom resource on an action?

Thanks in advanced for your time.
Chris Miller
RE: Security & Permissions
12 de octubre de 2010 9:19
Respuesta

Chris Miller

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 30 de marzo de 2010

Mensajes recientes

Bump! I'm having the exact same problem. Is there no extension method in Liferay that will allow you to check a group of ResourceIds for those that the user has permissions to view and then return only those ids?

Chris