Skip to content

Commit

Permalink
修复非超管角色下请求内置api时提示无权访问问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Feb 21, 2021
1 parent 6d5f60c commit 7dbc570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function checkRoutePermission(Request $request)
*/
protected function isApiRoute($request)
{
return $request->routeIs('dcat.api.*');
return $request->routeIs(admin_api_route_name('*'));
}

/**
Expand Down

0 comments on commit 7dbc570

Please sign in to comment.