How to forbid to edit some fields for certain user by using role?

It’s need to forbid to edit some fields for certain user by using role.
User can edit not all fields, only definite.

But in “Role” exist only whole actions: list, edit, etc.

So we need programmatically disable some fields in the time of viewing of certain user?

Please give a hint - in what file of the module: controller.php, views/view.edit.php?
And please example of the code :slight_smile:

Thank you!

You can probably achieve it with a logic hook.

this will help you as long as you won’t have “conditional edit/view” https://store.biztechconsultancy.com/suitecrm-field-level-access-control.htm

best regards

2 Likes