thedevdojo/voyager

MenuItemPolicy fails with edit page urls

Open

#3.443 aberto em 3 de ago. de 2018

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)PHP (11.817 stars) (2.652 forks)batch import
help wantedtype:enhancement

Description

Version information

  • Laravel: v5.6
  • Voyager: v1.1.3
  • PHP: 7.2

Description

When a route with parameters or a static url which include more than 1 segment added to admin menu, policy fails to check permission because slug fetched wrong (like pages1edit instead of pages)

Guia do colaborador