From 625704a2626e9ed573bc74c38fc132a4424e50d3 Mon Sep 17 00:00:00 2001 From: huoxiaoqiang Date: Tue, 2 Nov 2021 12:35:37 +0800 Subject: [PATCH] fix: permission command filter permission error --- src/Console/PermissionCommand.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Console/PermissionCommand.php b/src/Console/PermissionCommand.php index 1985a78cbf..755c3ee56c 100644 --- a/src/Console/PermissionCommand.php +++ b/src/Console/PermissionCommand.php @@ -124,9 +124,6 @@ private function generateHttpMethod($permission) case 'delete': $http_method = ['DELETE']; break; - case 'filter': - $http_method = []; - break; default: $http_method = ['GET']; } @@ -140,6 +137,7 @@ private function generateHttpPath($table, $permission) switch ($permission) { case 'create': case 'list': + case 'filter': $http_path = '/'.$resource; break; case 'edit':