Page 1 of 1

Block Some Fields

Posted: 2020-07-21 08:18
by espo
Hi everyone.
I would like to know if it is possible to block some fields for a specific user.
For example, the table has four fields: name, city, address and telephone.
User 1 can fill in all fields, while User 2 can only fill in the phone field. For User 2 the other fields (name, city and address) must be blocked.
It's possible?

Thanks so much.

Re: Block Some Fields

Posted: 2020-07-21 16:57
by pbottcher
Hi,

short answer: yes.

You can disable the fields. There are a couple of posts in the forum on how-to's.
You still need to check that in the hooks insert, update as the pure js version is not safe.

Re: Block Some Fields

Posted: 2020-08-06 15:06
by onoehring
Hi espo,

please see my extension (in my footer) - those might help.
Column-Value-Based-Permissions ( viewtopic.php?f=4&t=3498 ) and
Field Permissions ( viewtopic.php?f=4&t=3308 )

Olaf