ADD gantt, sonar menu for menu_list api

This commit is contained in:
jasder 2021-07-06 15:49:26 +08:00
parent 68f1d7f7f6
commit d9a27b7728
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ class ProjectsController < ApplicationController
menu.append(menu_hash_by_name("versions")) if @project.has_menu_permission("versions")
menu.append(menu_hash_by_name("resources")) if @project.has_menu_permission("resources")
menu.append(menu_hash_by_name("activity"))
menu.append(menu_hash_by_name("gantt"))
menu.append(menu_hash_by_name("sonar"))
menu.append(menu_hash_by_name("setting")) if current_user.admin? || @project.manager?(current_user)
render json: menu