For pullRequest 19

For https://github.com/webman-php/admin/pull/19
This commit is contained in:
walkor 2023-03-04 19:11:44 +08:00 committed by GitHub
parent b923963f44
commit 89680d3754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ class AccessControl implements MiddlewareInterface
EOF EOF
); );
} else { } else {
$request->plugin = 'admin';
$response = view('common/error/403')->withStatus(403); $response = view('common/error/403')->withStatus(403);
} }
} }
@ -49,4 +50,4 @@ EOF
} }
} }