@fluxhub/fluxhub-lib 1.0.430 → 1.0.432

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.
@@ -20069,8 +20069,9 @@ var FHGuard = /** @class */ (function () {
20069
20069
  if (data.result_data.length > 0) {
20070
20070
  //console.log('canActivate 6');
20071
20071
  _this.app_s.user_roles = data.result_data[0].roles;
20072
- if (_this.app_s.user_roles.length > 0)
20073
- _this.app_s.user_roles = _this.app_s.user_roles.substr(1);
20072
+ if (_this.app_s.user_roles != null)
20073
+ if (_this.app_s.user_roles.length > 0)
20074
+ _this.app_s.user_roles = _this.app_s.user_roles.substr(1);
20074
20075
  _this.app_s.user_isadmin = data.result_data[0].isadmin;
20075
20076
  _this.app_s.user = data.result_data[0].username;
20076
20077
  console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
@@ -20120,8 +20121,11 @@ var FHGuard = /** @class */ (function () {
20120
20121
  console.log('this.app_s ', _this.app_s);
20121
20122
  /** @type {?} */
20122
20123
  var p_2 = new QParam();
20124
+ console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
20125
+ console.log('this.app_s.user_isadminsss ', _this.app_s.user_isadmin + '');
20123
20126
  if (_this.app_s.user_isadmin != null)
20124
20127
  if (_this.app_s.user_isadmin + '' == '1') {
20128
+ console.log('resolve true');
20125
20129
  resolve(true);
20126
20130
  return;
20127
20131
  }