Field Permissions (hide / lock fields by usergroup)
Posted: 2019-11-12 09:21
Hi
as AppGini (AG) in the current version 5.81 does not support field specific permissions, I decided to make a start.
I present documentation and code to implement field specific permissions in your own AG application: You can easily LOCK and HIDE fields for specific usergroups. Single users are not supported at this time.
Please see the attached ZIP which contains a PDF with instructions and the code needed.
Installation time: approx. 30 minutes (my guess - please let me know how long it actually took you)
This solution implements a frontend hiding and locking as well as a backend checking. If a users tries to cheat and fiddles around in the code of the page to change values he actually does not have access to (hidden/locked fields) the attempt to save the changes will fail.
Important
This Field Permissions extension requires AppGini Helper! You need to buy AppGini Helper which can be obtained for small money from https://www.bizzworxx.de/en/appgini-helper/
I decided to use Appgini Helper as it is a great script which supports all field types of AppGini and provides many new features to AppGini (AG Forum: viewtopic.php?f=2&t=3206). Please take a look and support Jan Setzer (Â jsetzer, memberlist.php?mode=viewprofile&u=9279Â ) who is the programmer and great supporter of all users in the AppGini forum.
Look of locked fields: Additional contents in your AG application: Permission definition A: Permission definition B: Download Please post your suggestions and comments, as well as any errors I made in the documentation so that i can correct them.
Olaf
as AppGini (AG) in the current version 5.81 does not support field specific permissions, I decided to make a start.
I present documentation and code to implement field specific permissions in your own AG application: You can easily LOCK and HIDE fields for specific usergroups. Single users are not supported at this time.
Please see the attached ZIP which contains a PDF with instructions and the code needed.
Installation time: approx. 30 minutes (my guess - please let me know how long it actually took you)
This solution implements a frontend hiding and locking as well as a backend checking. If a users tries to cheat and fiddles around in the code of the page to change values he actually does not have access to (hidden/locked fields) the attempt to save the changes will fail.
Important
This Field Permissions extension requires AppGini Helper! You need to buy AppGini Helper which can be obtained for small money from https://www.bizzworxx.de/en/appgini-helper/
I decided to use Appgini Helper as it is a great script which supports all field types of AppGini and provides many new features to AppGini (AG Forum: viewtopic.php?f=2&t=3206). Please take a look and support Jan Setzer (Â jsetzer, memberlist.php?mode=viewprofile&u=9279Â ) who is the programmer and great supporter of all users in the AppGini forum.
Look of locked fields: Additional contents in your AG application: Permission definition A: Permission definition B: Download Please post your suggestions and comments, as well as any errors I made in the documentation so that i can correct them.
Olaf