thedevdojo/voyager

MenuItemPolicy fails with edit page urls

Open

#3443 aperta il 3 ago 2018

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)PHP (2652 fork)batch import
help wantedtype:enhancement

Metriche repository

Star
 (11.817 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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)

Guida contributor