Skip to content

Commit

Permalink
Merge pull request #5455 from WizardPro/patch-2
Browse files Browse the repository at this point in the history
fix: permission command filter permission error
  • Loading branch information
jxlwqq authored Nov 2, 2021
2 parents 6d12f77 + 625704a commit 2a6ad09
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 2a6ad09

Please sign in to comment.