You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-03-16 10:55:20

Marvis
Member
Registered: 2018-03-09
Posts: 10

Get active profile

good morning,

I was looking for some way to get the profile that the user who is browsing in a form of glpi,
something like SESSION: getProfile or something like that

sabeis if something like that exists?

Thank you very much.

Offline

#2 2018-03-16 11:00:18

btry
Moderator
Registered: 2015-10-01
Posts: 593

Re: Get active profile

Bonjour

De mémoire, c'est dans $_SESSION['glpiactive_profile'] ou quelque chose d'approchant. Utilisez le mode debug de GLPI pour visualiser une session. Vous trouverez assez facilement


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#3 2018-03-16 11:04:31

Marvis
Member
Registered: 2018-03-09
Posts: 10

Re: Get active profile

Thank you very much, I found it, it's in $_SESSION['glpiactiveprofile']['id'].

Last edited by Marvis (2018-03-16 11:05:25)

Offline

Board footer

Powered by FluxBB