monkey-front-core 0.0.57 → 0.0.61

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,7 @@ class MonkeyEcxSecurityDirective {
2793
2793
  handleAccess() {
2794
2794
  const { roles, byExclusion } = this;
2795
2795
  let display = 'none';
2796
- const found = roles?.indexOf(this.getRole()) || -1;
2796
+ const found = roles?.indexOf(this.getRole());
2797
2797
  if (byExclusion) {
2798
2798
  display = 'block';
2799
2799
  if (found > -1) {