Commit 0db203e1 authored by Steffen Rühlmann's avatar Steffen Rühlmann Committed by James Huang
Browse files

Issue #3290733: DomainMenusListBuilder shows all menus, if user has no edit access to all menus

parent 762340b1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -34,6 +34,11 @@ class DomainMenusListBuilder extends MenuListBuilder {
      $query->condition('id', array_keys($menus), 'IN');
    }

    // If we don't find any menus, we return an empty result set.
    if (empty($menus)) {
      return [];
    }

    // Only add the pager if a limit is specified.
    if ($this->limit) {
      $query