mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 17:07:49 +08:00
fix : first finish
This commit is contained in:
@@ -74,6 +74,7 @@ class PermissionMiddleware implements MiddlewareInterface
|
||||
/**
|
||||
* @var Permission[] $permissions
|
||||
*/
|
||||
$permissions = [];
|
||||
$classAnnotation && $permissions[] = $classAnnotation;
|
||||
$methodPermission = Arr::get($annotations, Permission::class);
|
||||
$methodPermission && $permissions[] = $methodPermission;
|
||||
|
||||
Reference in New Issue
Block a user