Skip to content

Commit

Permalink
fix: permission command filter permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardPro authored Nov 2, 2021
1 parent 6d12f77 commit 625704a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Console/PermissionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ private function generateHttpMethod($permission)
case 'delete':
$http_method = ['DELETE'];
break;
case 'filter':
$http_method = [];
break;
default:
$http_method = ['GET'];
}
Expand All @@ -140,6 +137,7 @@ private function generateHttpPath($table, $permission)
switch ($permission) {
case 'create':
case 'list':
case 'filter':
$http_path = '/'.$resource;
break;
case 'edit':
Expand Down

0 comments on commit 625704a

Please sign in to comment.