thedevdojo/voyager

MenuItemPolicy fails with edit page urls

Open

#3,443 建立於 2018年8月3日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)PHP (11,817 star) (2,652 fork)batch import
help wantedtype:enhancement

描述

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)

貢獻者指南