Unauthorized Access to items via direct link in GenericObject Plugin
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- [x] I have searched the existing issues
GLPI Version
10.0.11
Plugin version
2.14.11
Bug description
In GLPI, we have added the GenericObject plugin and created an object called "Token." We then added items to this object. When you click a direct link, you see a message that says “You are not authorized to perform this operation” and a link that says “Return to previous page.” Clicking the “Return to Previous Page” link does not lead to the expected action.
In such situations, it is expected that a message prompting the user to log in (with a corresponding button) should be displayed, or the user should be immediately redirected to the GLPI login page, similar to what happens when accessing https://example.com/front/computer.form.php.
Relevant log output
Page URL
No response
Steps To reproduce
-
Install the GenericObject plugin in GLPI. -
Create an object called "Token."
-
Add items to the "Token" object. -
Logout. -
Attempt to access the equipment via a direct link.
For example: https://xxxxxx.xxx/marketplace/genericobject/front/object.form.php?itemtype=PluginGenericobjectToken&id=1
Your GLPI setup information
No response
Anything else?
No response