Skip to content

Commit 625704a

Browse files
authored
fix: permission command filter permission error
1 parent 6d12f77 commit 625704a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Console/PermissionCommand.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ private function generateHttpMethod($permission)
124124
case 'delete':
125125
$http_method = ['DELETE'];
126126
break;
127-
case 'filter':
128-
$http_method = [];
129-
break;
130127
default:
131128
$http_method = ['GET'];
132129
}
@@ -140,6 +137,7 @@ private function generateHttpPath($table, $permission)
140137
switch ($permission) {
141138
case 'create':
142139
case 'list':
140+
case 'filter':
143141
$http_path = '/'.$resource;
144142
break;
145143
case 'edit':

0 commit comments

Comments
 (0)