Fórum

Edit permissions in User Account

thumbnail
Liferay S, modificado 9 Anos atrás.

Edit permissions in User Account

Junior Member Postagens: 53 Data de Entrada: 12/04/12 Postagens Recentes
Hi,

Is there any way I could restrict any user to update any of their personal information except the portrait image.

I mean:

1) All the fields on MyAccount page should be editable by the administrator only.
2) All the users should be able to edit their potrait image only.

I have gone through the properties:

field.editable.user.types=
field.editable.roles=administrator

field.editable.domains=
field.editable.domains[birthday]=
field.editable.domains[emailAddress]=
field.editable.domains[firstName]=
field.editable.domains[gender]=
field.editable.domains[jobTitle]=
field.editable.domains[lastName]=
field.editable.domains[middleName]=
field.editable.domains[portrait]=
field.editable.domains[prefix]=
field.editable.domains[screenName]=
field.editable.domains[suffix]=


In these properties I need to provide the domain names, so that the user email with those domain names can be able to edit the respective field. But it is not practically possible for me as I have a public site and everyday thousands of users create a new account with any email ids, so it is not practically possible to pass all the domains.

Please suggest any alternative.

NOTE: I tried wild card character '*' but it was of no use.

Thanks in advance.
thumbnail
Andew Jardine, modificado 9 Anos atrás.

RE: Edit permissions in User Account

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
You might be able to achieve what you are looking for by changing the default permissions for one of the Roles. For example, you can go to Control Panel > Users > Roles > ... find the "User" role and on the actions button choose "Define Permissions". There is a My Account section. I don't see anything about the individual fields for a users account though -- but you might be able to create a custom role that accomplishes what you are looking for and then have that be a default role that is added to a user when they are registered.
Tameez Lal, modificado 9 Anos atrás.

RE: Edit permissions in User Account

New Member Postagens: 20 Data de Entrada: 25/10/13 Postagens Recentes
Hello,
You can create a custom permission according to your requirement for more details here is the link http://www.liferaysavvy.com/2013/02/liferay-permission-system-detailed.html
thumbnail
Liferay S, modificado 9 Anos atrás.

RE: Edit permissions in User Account

Junior Member Postagens: 53 Data de Entrada: 12/04/12 Postagens Recentes
Hi Tameez/Andrew

Thanks for your suggestions.
This requirement can not be achieved by permissions.

I have found an LPS which is created for feature request.

LPS-50500

Unfortunately, listing out all of the domains that are present in their portal is the only option (you you don't want to write custom code).
If you see LPS-30036, these properties were made with LDAP in mind so it was assumed that there would be a limited number of domains).

Thanks for the effort
thumbnail
Alberto Chaparro, modificado 8 Anos atrás.

RE: Edit permissions in User Account

Liferay Master Postagens: 549 Data de Entrada: 25/04/11 Postagens Recentes
Hi Liferay S,

This issue has been solved by LPS-56093. After this issue you will be able to use * to allow all domains. For example:
field.editable.domains[screenName]=*


I hope it helps.

Cheers.