-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formcreator does not appear do respect entities delimitations #2046
Comments
Hi Currently the plugin restricts the items to the active entities of the user. If your user is in "main entity" ans has recursivity, then he will see locations from all entities beliw the current one. Your observation has similarities with an other recent feedback. It is considered to change the behaviour to use restrict the entities from the entity and recursion of the form. However this may lead to unwanted behavior in Formcreator 2.10.x. I plan to do the change in the next version. I still can build a patch for 2.10.x for validation purpose, then you may use it in production. Please wait until I deliver the patch. |
related to #2023 |
Thank you. Since the form is created on a certain entity, I believe it should take permission from there, not the users'. |
Hi Please test the above patch and feedback. Be aware that if it works wel, I won't merge it in support/2.10.0. I'll merge it only in develop branch. It is your responsibility to use the patch on 2.10.x versions and store localy a copy of the patch (I sometimes clean my fork and delete obsolete branches) |
Well, I changed the code lines and nothing happened. I did stop/start apache. All objects still show up instead just within the entity. I also tried with the self-service profile inside an specific entity. |
Hi In which entity is your form ? |
My form is on Main entity -> entity 2. It shows everything from the main entity. |
Hi I created the following context The patch I submitted to you is not applied
I login with the user glpi and I position mlyself to Entity A
The result seems correct. Items in ancestor entities are visible only if they are recursive. In a debug session, I observed that the dropdown is properly configured by the plugin. i think that the locations you wand to not see are recursive. |
Hi Did you checked the recursive flag of your categories ? |
I did all checks and now a network device from entity A does not show up in B. thanks. The forms are contained aswell. Thank you. |
Hi Then the patch solved the issue, right ? If yes, can I close ? |
Yes, closed. |
Describe the bug
formcreator does not appear do respect entity delimitation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
formcreator should respect the entities limits. Should not show items from other entity nor from the parent which are not marked visible to children.
Screenshots
Desktop (please complete the following information):
Additional context
items tested were Locations, Network devices and an additional field created with custom fields plugin.
The text was updated successfully, but these errors were encountered: