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.
Block Some Fields
Re: Block Some Fields
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.
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.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Block Some Fields
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
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
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view