sigesp 0.8.60-220113 → 0.8.61-220113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5744,21 +5744,13 @@ class SigespService {
5744
5744
  }));
5745
5745
  }
5746
5746
  /**
5747
- * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
5748
- * @return Json data
5749
- * @author Ing. Wilmer Briceno
5750
- */
5747
+ * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
5748
+ * @return Json data
5749
+ * @author Ing. Wilmer Briceno
5750
+ */
5751
5751
  getJsonMenu(id_usuario, sistema) {
5752
5752
  return this.http.get(`${this.URL}/dao/sss/menu_dao.php?id_usuario=${id_usuario}&sistema=${sistema}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
5753
- var menuJson = res.data;
5754
- var stringifiedData = JSON.stringify(menuJson);
5755
- stringifiedData = stringifiedData.substring(9, (stringifiedData.length - 2));
5756
- stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
5757
- //console.log('stringJson : ',this.stringifiedData );
5758
- var string_menu = "[" + stringifiedData + "\"]";
5759
- var menu = string_menu;
5760
- menu = JSON.parse(menu);
5761
- this.userMenu = menu;
5753
+ this.userMenu = res.data;
5762
5754
  return this.userMenu;
5763
5755
  }));
5764
5756
  }