@fluxhub/fluxhub-lib 1.0.280 → 1.0.282

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.
@@ -15253,25 +15253,28 @@
15253
15253
  function (next, state) {
15254
15254
  var _this = this;
15255
15255
  this.routingDestination = next.url[0].path;
15256
- // //console.log(this.routingDestination);
15256
+ console.log('qui1');
15257
15257
  if (this.routingDestination == '')
15258
15258
  return true;
15259
15259
  if (this.routingDestination == 'login' || this.routingDestination == 'rp' || this.routingDestination == 'pr' || this.routingDestination == '/')
15260
15260
  return true;
15261
+ console.log('qui2');
15261
15262
  if (this.auth.checkCredentials()) {
15263
+ console.log('qui3');
15262
15264
  if (this.routingDestination == 'home')
15263
15265
  return true;
15264
15266
  //console.log('canActivate 1');
15265
15267
  if (this.app_s.user_isadmin != null)
15266
15268
  if (this.app_s.user_isadmin == "1")
15267
15269
  return true;
15270
+ console.log('qui4');
15268
15271
  return new Promise(( /**
15269
15272
  * @param {?} resolve
15270
15273
  * @return {?}
15271
15274
  */function (resolve) {
15272
- //console.log('canActivate 2');
15275
+ console.log('qui5');
15273
15276
  if (_this.arr_accessi != null) {
15274
- //console.log('canActivate 3');
15277
+ console.log('qui6');
15275
15278
  for (var i = 0; i < _this.arr_accessi.length; i++) {
15276
15279
  if (_this.arr_accessi[i].type == 'M')
15277
15280
  if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
@@ -15285,6 +15288,7 @@
15285
15288
  resolve(false);
15286
15289
  return;
15287
15290
  }
15291
+ console.log('qui7');
15288
15292
  //console.log('canActivate 5');
15289
15293
  /** @type {?} */
15290
15294
  var p = new QParam();
@@ -15299,6 +15303,7 @@
15299
15303
  if (data != null)
15300
15304
  if (data.result_msg == "OK")
15301
15305
  if (data.result_data.length > 0) {
15306
+ console.log('qui8');
15302
15307
  //console.log('canActivate 6');
15303
15308
  _this.appService.user_roles = data.result_data[0].roles;
15304
15309
  if (_this.appService.user_roles.length > 0)
@@ -15319,7 +15324,7 @@
15319
15324
  * @param {?} data
15320
15325
  * @return {?}
15321
15326
  */function (data) {
15322
- //console.log('canActivate 9');
15327
+ console.log('qui9');
15323
15328
  _this.arr_accessi = data.result_data;
15324
15329
  for (var i = 0; i < _this.arr_accessi.length; i++) {
15325
15330
  //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
@@ -15347,6 +15352,7 @@
15347
15352
  else {
15348
15353
  /** @type {?} */
15349
15354
  var p_2 = new QParam();
15355
+ console.log('qui10');
15350
15356
  p_2.sql = "SELECT_APPS_USER_ALL";
15351
15357
  _this.appService.getState().app_enabled = new Array();
15352
15358
  p_2.types = ['string'];
@@ -15358,7 +15364,9 @@
15358
15364
  */function (data) {
15359
15365
  //console.log('canActivate 9');
15360
15366
  _this.arr_accessi = data.result_data;
15367
+ console.log('qui11');
15361
15368
  for (var i = 0; i < _this.arr_accessi.length; i++) {
15369
+ console.log('qui12');
15362
15370
  //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
15363
15371
  if (_this.arr_accessi[i].type == 'M') {
15364
15372
  if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {