You are not logged in.
Would it be possible (in a general object I created) to restrct certain fields to be modified by anyone exept for instance the admin?
This would be fixed data not subjected to change and thus must be protected from employee hampering.
Offline
No. Field-level permissions are not available in GLPI itself. You could always create a plugin to handle that though.
https://glpi-developer-documentation.re … index.html
Specifically, I would think such a plugin would use the "pre_item_update" plugin hook to unset the changes you deem to be not allowed by the current user and then add a new message that would be shown to the user explaining the issue with something like:
Session::addMessageAfterRedirect('You do not have permission to update these fields: ' . implode(', ', $list_of_unset_fields), false, ERROR)
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Thank you.
I'm still struggeling with plugins so this one would be a little over my head at current time.
Offline