Skip to content
Snippets Groups Projects

Issue #3500365: Limit display based on access.

2 files
+ 14
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -329,7 +329,7 @@ class DisplaySwitch extends AreaPluginBase {
* Whether the display ID is an allowed display or not.
*/
protected function isAllowedDisplay($display_id) {
return $this->isPathBasedDisplay($display_id) || $this->isBlockDisplay($display_id);
return ($this->isPathBasedDisplay($display_id) || $this->isBlockDisplay($display_id)) && $this->view->displayHandlers->get($display_id)->access();
}
/**
Loading