https://github.com/dcc6fvo/php-glpi-mod
This is a modification for GLPI 10.0.x that allows users to open tickets in entities other than the root entity, accessing them through buttons in the front page.
https://github.com/dcc6fvo/php-glpi-mod
entities entity glpi ldap php support tickets
Last synced: 11 months ago
JSON representation
This is a modification for GLPI 10.0.x that allows users to open tickets in entities other than the root entity, accessing them through buttons in the front page.
- Host: GitHub
- URL: https://github.com/dcc6fvo/php-glpi-mod
- Owner: dcc6fvo
- License: mit
- Created: 2023-02-06T22:38:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T14:11:05.000Z (over 3 years ago)
- Last Synced: 2025-04-21T20:47:22.698Z (about 1 year ago)
- Topics: entities, entity, glpi, ldap, php, support, tickets
- Language: PHP
- Homepage:
- Size: 332 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# php-glpi-mod
This is a modification for GLPI 10.0.x that allows users to access and open tickets in entities other than the root entity, accessing them through the buttons in the "Home" profile / root entity. The "Home" profile must be configured on the root entity. In this model, users cannot open tickets in the root entity, only in the sub-entities. For this context we consider there are no people managing the root entity, only people in their departments/entities who are responsible only for them.
First you need to make some modifications to GLPI, and then just copy the files suggested in the installation session.
Prerequisites
-----------------------
- A GLPI 10.0.x running instance
Config
-----------------------
The following represents a step by step to configure the glpi installation that will be modified:
1) Organize your entities with at least one root entity and its subentities;
2) Create a "Home" profile;
3) On your "Home" profile main tab, set your fresh "Home" profile as the Default Profile;
4) On your "Home" profile assistance tab, uncheck all the options;
5) Last but not least, access Administration > Users and add the root entity with the home profile;
Install
-----------------------
The install is very easy. First copy the MudarEntidades.php file to the GLPI src/ folder. Then, add the following code to front/helpdesk.public.php:
```
if (isset($_SESSION['glpiactiveprofile'])) {
if ($_SESSION['glpiactiveprofile']['name'] == 'Home'){
MudarEntidade::show();
}
}
```
Finally
-----------------------
If everything went well, the user's home screen will look something like this:
Feel free to modify the code as needed !!