monkey-front-core 0.0.58 → 0.0.59

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.
@@ -2776,7 +2776,7 @@ class MonkeyEcxSecurityDirective {
2776
2776
  this.elementRef = elementRef;
2777
2777
  this.tokenStorageService = tokenStorageService;
2778
2778
  this.cdr = cdr;
2779
- this.roles = null;
2779
+ this.roles = [];
2780
2780
  this.byExclusion = false;
2781
2781
  this.tokenCredentials = null;
2782
2782
  // not to do
@@ -2793,7 +2793,11 @@ class MonkeyEcxSecurityDirective {
2793
2793
  handleAccess() {
2794
2794
  const { roles, byExclusion } = this;
2795
2795
  let display = 'none';
2796
+ console.log('roles');
2797
+ console.log(roles);
2796
2798
  const found = roles?.indexOf(this.getRole()) || -1;
2799
+ console.log('found');
2800
+ console.log(found);
2797
2801
  if (byExclusion) {
2798
2802
  display = 'block';
2799
2803
  if (found > -1) {