Verified Commit 4e913d67 authored by tinny's avatar tinny Committed by Lee Rowlands
Browse files

Issue #3300352 by tinny: array_flip warning when used with moderation_sidebar

parent 1b07d66a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -76,6 +76,10 @@ class ReorderChildrenAccess implements AccessCheckInterface {
    $entity_type = $route->getOption(EntityHierarchyRouteProvider::ENTITY_HIERARCHY_ENTITY_TYPE);
    $entity = $this->routeMatch->getParameter($entity_type);

    if (empty($entity)) {
      return AccessResult::forbidden();
    }

    // If a user has configured a local task with views at e.g.
    // node/{node}/media then the {node} object isn't upcast.
    // @todo revisit this when