Enabling editting on specific custom fields in liferay

294 views Asked by At

I am adding some custom fields to the "user" model of liferay (6.2).

As per my use-case I need to show all the fields to all the users, but enable editing on a few of them, other remains read-only.

I read about the "view" permission and "update" permission but former makes all read-only and later makes all editable.

Do I need to create a hook for this or can there be any other solution?

Read this too: Customizing liferay hook custom fields

Thanks! AJ

1

There are 1 answers

0
ankurjhawar On BEST ANSWER

There is a set of permissions for each custom field which can be tweaked based on roles, which is what I was looking for.

I overlooked and rightly answered/pointed by @OlafKock.