Fórum

Per user permissions in liferay 6

thumbnail
jelmer kuperus, modificado 13 Anos atrás.

Per user permissions in liferay 6

Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
Hi. We are using the document library portlet and need to be able to assign permissions on documents to specific users.

This was easy to do in liferay 5.2.x but liferay 6 uses the new rbac permission algorithm by default
This algorithm is described on

http://www.liferay.com/web/raymond.auge/blog/-/blogs/the-new-liferay-permission-algorithm-a-k-a-5-a-k-a-rbac

When using this algorithm I suppose we could create a role per user but that seems like somewhat of a hack.
Can someone comment on this ? Is this the way to go with this algorithm ?

Another option I thought of is to set the permissions.user.check.algorithm property in portal-ext.properties to 1 - 4 That way we'd be using the older, more flexible, but less performant permission based algorithm.
But is this still supported and will this still be supported in future versions ?
thumbnail
jelmer kuperus, modificado 13 Anos atrás.

RE: Per user permissions in liferay 6

Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
shameless self bump
Pete J Johnson, modificado 11 Anos atrás.

RE: Per user permissions in liferay 6

New Member Postagens: 4 Data de Entrada: 08/01/09 Postagens Recentes
This is actually interesting for me also. Did you end changing the permissions.user.check.algorithm property? We also require access right control on documents per user.
thumbnail
jelmer kuperus, modificado 11 Anos atrás.

RE: Per user permissions in liferay 6

Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
No, we did try it out, and it did exactly what we needed but because it's not the default anymore there where many bugs. Plus i've heard Liferay developers express the intent to want to remove this option from Liferay altogether which means you could end up stuck on on an old version of Liferay.

The "role per user" strategy works but it requires administrative access to create such a role. So its not like any user can give permissions to any other one user.

Also things don't work out all that well when you create lots of roles specific to one users. Permission dialogs where not created with that many roles in mind
Pete J Johnson, modificado 11 Anos atrás.

RE: Per user permissions in liferay 6

New Member Postagens: 4 Data de Entrada: 08/01/09 Postagens Recentes
Major setback. We also tried one of the old algorithms and experienced bugs like users could not be found. Granting access to a resource for some specific users is IMO a critical basic feature. I wonder if there's anything coming to solve this..
Vijay Patil, modificado 11 Anos atrás.

RE: Per user permissions in liferay 6

New Member Postagens: 3 Data de Entrada: 15/08/12 Postagens Recentes
We are also looking at this. It is critical that we have the facility to share the document per user. Are there workarounds for this? If we are looking at customizing the document library to show the users list in the permissions and allow to select, do we need to look at ext development? Any pointers to achieve this would be appreciated.

Thanks
Vijay
Pietro Piccoli, modificado 10 Anos atrás.

RE: Per user permissions in liferay 6

New Member Postagens: 8 Data de Entrada: 25/01/12 Postagens Recentes
Hi,
is there in Liferay roadmap the option of configure an action on resource (edit,view,delete.etc..) not only by role but also by user or user group?

And there will be a possibility to restrict access on a particular property of model (ex.: Name of organization in Organization Model ) so a user or a user with specific role can view or not view or modify or not modify that particular field "name of organization" though the user belong a role that allow editing the resource "organization" ?


Thanks in advance.
thumbnail
Mika Koivisto, modificado 11 Anos atrás.

RE: Per user permissions in liferay 6

Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
Algorithms 1 - 5 are dropped in Liferay 6.2 so don't rely on them.
Matthew Smith, modificado 11 Anos atrás.

RE: Per user permissions in liferay 6

New Member Postagens: 3 Data de Entrada: 21/03/12 Postagens Recentes
Is there a document anywhere that details how to move from algorithm 5 to 6?
thumbnail
Marco Rosetti, modificado 9 Anos atrás.

RE: Per user permissions in liferay 6

Junior Member Postagens: 68 Data de Entrada: 06/03/13 Postagens Recentes
Any news about the right approach?

Is "one specific role per user" the only feasible way?