PMCORE-3375
This commit is contained in:
@@ -312,10 +312,12 @@ export default {
|
|||||||
id: "TASK_METRICS",
|
id: "TASK_METRICS",
|
||||||
page: "task-metrics",
|
page: "task-metrics",
|
||||||
title: data[i].title,
|
title: data[i].title,
|
||||||
specialType: "header"
|
header: data[i] && !data[i].permission? true : null,
|
||||||
|
specialType: data[i] && data[i].permission? "header" : null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
if (data[i].customCasesList) {
|
if (data[i].customCasesList) {
|
||||||
data[i]["child"] = this.sortCustomCasesList(
|
data[i]["child"] = this.sortCustomCasesList(
|
||||||
|
|||||||
@@ -753,6 +753,7 @@ class Home extends Api
|
|||||||
*/
|
*/
|
||||||
public function getMenu()
|
public function getMenu()
|
||||||
{
|
{
|
||||||
|
global $RBAC;
|
||||||
// Parse menu definition
|
// Parse menu definition
|
||||||
$menuInstance = new Menu();
|
$menuInstance = new Menu();
|
||||||
$menuInstance->load('home');
|
$menuInstance->load('home');
|
||||||
@@ -772,6 +773,9 @@ class Home extends Api
|
|||||||
$option->title = $menuInstance->Labels[$i];
|
$option->title = $menuInstance->Labels[$i];
|
||||||
$option->hiddenOnCollapse = true;
|
$option->hiddenOnCollapse = true;
|
||||||
$option->id = $menuInstance->Id[$i];
|
$option->id = $menuInstance->Id[$i];
|
||||||
|
if ( $option->id == "FOLDERS" && $RBAC->userCanAccess('TASK_METRICS_VIEW') == "1") {
|
||||||
|
$option->permission = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$option->href = $menuInstance->Options[$i];
|
$option->href = $menuInstance->Options[$i];
|
||||||
$option->id = $menuInstance->Id[$i];
|
$option->id = $menuInstance->Id[$i];
|
||||||
|
|||||||
Reference in New Issue
Block a user