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.
@@ -6329,22 +6329,14 @@
6329
6329
  }));
6330
6330
  };
6331
6331
  /**
6332
- * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
6333
- * @return Json data
6334
- * @author Ing. Wilmer Briceno
6335
- */
6332
+ * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
6333
+ * @return Json data
6334
+ * @author Ing. Wilmer Briceno
6335
+ */
6336
6336
  SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
6337
6337
  var _this = this;
6338
6338
  return this.http.get(this.URL + "/dao/sss/menu_dao.php?id_usuario=" + id_usuario + "&sistema=" + sistema, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
6339
- var menuJson = res.data;
6340
- var stringifiedData = JSON.stringify(menuJson);
6341
- stringifiedData = stringifiedData.substring(9, (stringifiedData.length - 2));
6342
- stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
6343
- //console.log('stringJson : ',this.stringifiedData );
6344
- var string_menu = "[" + stringifiedData + "\"]";
6345
- var menu = string_menu;
6346
- menu = JSON.parse(menu);
6347
- _this.userMenu = menu;
6339
+ _this.userMenu = res.data;
6348
6340
  return _this.userMenu;
6349
6341
  }));
6350
6342
  };