@wolkabout/commons 0.0.19 → 0.0.20

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.
@@ -2756,6 +2756,8 @@ class RequiresPermissionDirective {
2756
2756
  permissions;
2757
2757
  set appRequiresPermission(permissions) {
2758
2758
  if (!permissions) {
2759
+ this.viewContainer.clear();
2760
+ this.viewContainer.createEmbeddedView(this.templateRef);
2759
2761
  return;
2760
2762
  }
2761
2763
  this.permissions.hasAnyPermission(Array.isArray(permissions) ? permissions : [permissions]).pipe(distinctUntilChanged()).subscribe((hasPermissions) => {