When user hace acl's and tags dont see data in tree view, its fixed. Tiquet:#2508
This commit is contained in:
parent
0ef4510990
commit
6b6f18a695
|
@ -1746,29 +1746,41 @@ class Tree {
|
|||
}
|
||||
|
||||
public function getData() {
|
||||
|
||||
if (! defined('METACONSOLE')) {
|
||||
switch ($this->type) {
|
||||
case 'os':
|
||||
$this->getDataOS();
|
||||
break;
|
||||
case 'group':
|
||||
$this->getDataGroup();
|
||||
break;
|
||||
case 'module_group':
|
||||
$this->getDataModuleGroup();
|
||||
break;
|
||||
case 'module':
|
||||
$this->getDataModules();
|
||||
break;
|
||||
case 'tag':
|
||||
$this->getDataTag();
|
||||
break;
|
||||
case 'agent':
|
||||
$this->getDataAgent();
|
||||
break;
|
||||
default:
|
||||
$this->getDataExtended();
|
||||
if ($this->strictACL) {
|
||||
switch ($this->type) {
|
||||
case 'group':
|
||||
case 'tag':
|
||||
$this->getDataStrict();
|
||||
break;
|
||||
case 'agent':
|
||||
$this->getDataAgent();
|
||||
break;
|
||||
}
|
||||
}
|
||||
else{
|
||||
switch ($this->type) {
|
||||
case 'os':
|
||||
$this->getDataOS();
|
||||
break;
|
||||
case 'group':
|
||||
$this->getDataGroup();
|
||||
break;
|
||||
case 'module_group':
|
||||
$this->getDataModuleGroup();
|
||||
break;
|
||||
case 'module':
|
||||
$this->getDataModules();
|
||||
break;
|
||||
case 'tag':
|
||||
$this->getDataTag();
|
||||
break;
|
||||
case 'agent':
|
||||
$this->getDataAgent();
|
||||
break;
|
||||
default:
|
||||
$this->getDataExtended();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ($this->strictACL) {
|
||||
|
|
Loading…
Reference in New Issue