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