You are not logged in.
Pages: 1
I want to correct function check in inc/commondbtm.class.php
Some tickets must see only user 13 and user-requester.
How can I get ID of requester? options["_users_id_requester"] is not working
function check($ID,$right,&$input=NULL) {
global $CFG_GLPI;
// Check item exists haveRight("own_ticket","1")
if ((!$this->isNewID($ID) && !$this->getFromDB($ID)) || ((!((getLoginUserID()==13) || (getLoginUserID()==$options["_users_id_requester"]))) && ($this->fields['ticketcategories_id']==4))) {
// Gestion timeout session
if (!getLoginUserID()) {
glpi_header($CFG_GLPI["root_doc"] . "/index.php");
exit ();
}
displayNotFoundError();
Offline
You only can check what you have in this function, and $options is not present
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
Pages: 1