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 2017-02-21 17:12:50

douzr12
Member
From: GLPI v0.84.8 - ubuntu 16.04
Registered: 2017-02-06
Posts: 6

Add create_leave right to GLPI 0.84.8

hi,
I want to add a new right 'create_leave' just like 'create_ticket' to the haveRight
so i can add it in the helpdesk, I'm already add a column to the glpi_profiles i call it create_leave = 1 to all (just like create_ticket).
but doesn't work!

if (Session::haveRight("create_leave","1")) {
show me something; }

what can i do?

Offline

#2 2017-02-27 13:41:36

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Add create_leave right to GLPI 0.84.8

You have create the new right must have you put it in the session?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2017-02-27 15:37:25

douzr12
Member
From: GLPI v0.84.8 - ubuntu 16.04
Registered: 2017-02-06
Posts: 6

Re: Add create_leave right to GLPI 0.84.8

yes I have to. so what files i must change? you have to know that I add a column `leavereq` to table `glpi_profiles` default = w to id > 0

Last edited by douzr12 (2017-02-28 13:19:47)

Offline

Board footer

Powered by FluxBB