@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.
@@ -20091,8 +20091,9 @@
20091
20091
  if (data.result_data.length > 0) {
20092
20092
  //console.log('canActivate 6');
20093
20093
  _this.app_s.user_roles = data.result_data[0].roles;
20094
- if (_this.app_s.user_roles.length > 0)
20095
- _this.app_s.user_roles = _this.app_s.user_roles.substr(1);
20094
+ if (_this.app_s.user_roles != null)
20095
+ if (_this.app_s.user_roles.length > 0)
20096
+ _this.app_s.user_roles = _this.app_s.user_roles.substr(1);
20096
20097
  _this.app_s.user_isadmin = data.result_data[0].isadmin;
20097
20098
  _this.app_s.user = data.result_data[0].username;
20098
20099
  console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
@@ -20142,8 +20143,11 @@
20142
20143
  console.log('this.app_s ', _this.app_s);
20143
20144
  /** @type {?} */
20144
20145
  var p_2 = new QParam();
20146
+ console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
20147
+ console.log('this.app_s.user_isadminsss ', _this.app_s.user_isadmin + '');
20145
20148
  if (_this.app_s.user_isadmin != null)
20146
20149
  if (_this.app_s.user_isadmin + '' == '1') {
20150
+ console.log('resolve true');
20147
20151
  resolve(true);
20148
20152
  return;
20149
20153
  }