|
|
@@ -36,9 +36,7 @@ public class DashBoardMenuService {
|
|
|
private List<DashboardMenuRespDTO> getData(int userId, int id, String role){
|
|
|
List<DashboardMenuRespDTO> dashboardMenuRespDTOList = new ArrayList<>();
|
|
|
if (!RoleConstant.SUPER_ADMIN.getRole().equals(role)) {
|
|
|
- if (RoleConstant.SUPER_ADMIN.getRole().equals(role)) {
|
|
|
- dashboardMenuRespDTOList = dashBoardMenuMapper.getMenuById(userId, id);
|
|
|
- }
|
|
|
+ dashboardMenuRespDTOList = dashBoardMenuMapper.getMenuById(userId, id);
|
|
|
}else {
|
|
|
dashboardMenuRespDTOList = dashBoardMenuMapper.getMenuWithNoLimit(id);
|
|
|
}
|