code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

Commit 70171824 authored by Joeri de Gooijer's avatar Joeri de Gooijer Committed by Michiel Rop

CHANNELMGR-1731 Remove unneeded check

parent 16264f82
......@@ -62,7 +62,7 @@ class ChannelCtrl {
}
get isContentOverlayDisplayed() {
this.OverlayService.showContentOverlay(this.OverlayService.isContentOverlayDisplayed && (!this.ProjectService || (this.ProjectService && this.ProjectService.actionFlags.contentOverlay.allowed)));
this.OverlayService.showContentOverlay(this.OverlayService.isContentOverlayDisplayed && this.ProjectService.actionFlags.contentOverlay.allowed);
return this.OverlayService.isContentOverlayDisplayed;
}
......@@ -71,7 +71,7 @@ class ChannelCtrl {
}
get isComponentsOverlayDisplayed() {
this.OverlayService.showComponentsOverlay(this.OverlayService.isComponentsOverlayDisplayed && (!this.ProjectService || (this.ProjectService && this.ProjectService.actionFlags.componentsOverlay.allowed)));
this.OverlayService.showComponentsOverlay(this.OverlayService.isComponentsOverlayDisplayed && this.ProjectService.actionFlags.componentsOverlay.allowed);
return this.OverlayService.isComponentsOverlayDisplayed;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment