Foros de discusión
Security & Permissions
Sina J, modificado hace 13 años.
Security & Permissions
New Member Mensajes: 8 Fecha de incorporación: 1/10/10 Mensajes recientes
Hi all,
I know how to use
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.
I know how to use
PermissionCheck
and hasPermission
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, modificado hace 13 años.
RE: Security & Permissions
New Member Mensajes: 3 Fecha de incorporación: 30/03/10 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
Chris