formcreator
formcreator copied to clipboard
[GLPI v10.0.0] [FC 2.13.0-b1] Unpublished FAQs are visible
I have just created a FAQ to which I have not assigned a target. The FAQ remains in "unpublished" mode and should not be visible.
However, in the simplified interface the user can see the FAQ but cannot display its content.
I think this is related to the issue I mentioned earlier.
Hi
If you enabled the "is FAQ" flag then the item shows, even when there is no target . This is set in GLPI core.
See glpi/srcKnowbaseItem.php line 1404
I think there is no bug here, as a FAQ item is not subject to targets restriction.
Sorry to insist but with GLPI v9.5 and FC v2.11.2 I have created targeted FAQs for a specific group and as you can see a user who is not part of the group cannot see the FAQs even if "is FAQ" is activated
I will compare the code of formcreator 2.11 against the current code, and I'll doo the same with GLPI.
Since 2.11, some slq queries were isolated for bettdr code factorisation and I expect that old inconsistencies may be fixed, causing changes like the one you reported.
Examining the code will help to determine if there is a regression or a bugfix.
Hi
I compared Formcreator 2.11.2 and 2.13. There is no change in the way it searches the KB items. The plugin gets from GLPI Core a SQL query with its own parameters, and the access restrictions are set by GLPI itself, not the plugin.
Then there is maybe a diffrence in GLPI which causes this difference. Could you check if you reproduce this behaviour without the service catalog ?
Hi.
I tested with a user whose profile does not go through the service catalogue. The topics and publications are all visible to the user. If I click on a publication I get an error message saying I can't access it but I can still see the title of the article and the short description.
OK, then when building the list of KB items available, GLPI seems to "forget" to exclude items where no rights are granted, right ?
Same issue here. Knowledge item (KI):
- with 'Put this item in the FAQ' marked.
- target entity outside hierarchical entity from user
- Knowledge Category outside hierarchical entity from user
Results from user outside hierarchical entity of the KI:
- user in simplified interface can list and search KI but when tries to read an error message is shown "You don't have permission to perform this action. "
- user in technician view can list and search KI but when tries to read an error message is shown "You don't have permission to perform this action. "
GLPI 10.0.2 and FC 2.13.0-rc.1
Hi
I identified that the problem has to be solved in GLPI. It requires some work because the fix does not maintains consistency with the targets (entity, group, profile, user) of a faq, introducing some exception. I must delay this issue and focus on the release of the plugin for now.