@onecx/angular-accelerator 4.20.1 → 4.21.0

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.
@@ -81,7 +81,11 @@ class IfPermissionDirective {
81
81
  }
82
82
  hasPermission(permission) {
83
83
  if (this.ocxIfPermissionPermissions) {
84
- return this.ocxIfPermissionPermissions.includes(permission);
84
+ const result = this.ocxIfPermissionPermissions.includes(permission);
85
+ if (!result) {
86
+ console.log('👮‍♀️ No permission in overwrites for: `', permission);
87
+ }
88
+ return result;
85
89
  }
86
90
  return this.userService.hasPermission(permission);
87
91
  }
@@ -151,7 +155,7 @@ class SrcDirective {
151
155
  set ocxSrc(value) {
152
156
  if (value && this._src !== value) {
153
157
  try {
154
- if (new URL(value, window.location.origin).origin === window.location.origin) {
158
+ if (new URL(value, window.location.origin).hostname === window.location.hostname) {
155
159
  this.httpClient.get(value, { responseType: 'blob' }).subscribe({
156
160
  next: (blob) => {
157
161
  const url = URL.createObjectURL(blob);