From 07f84e259a4d7f730050c671a2fae5b143f42254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Mon, 5 Feb 2018 19:55:31 +0800 Subject: [PATCH] bug fix --- src/PdAuth/Middleware/Authenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PdAuth/Middleware/Authenticate.php b/src/PdAuth/Middleware/Authenticate.php index 469000a..ee82fe3 100644 --- a/src/PdAuth/Middleware/Authenticate.php +++ b/src/PdAuth/Middleware/Authenticate.php @@ -80,7 +80,7 @@ class Authenticate $match = []; foreach ($user['roles'] as $role) { if (array_key_exists($role, $privileges)) { - $match += $privileges[$role]; + $match = array_merge($match,$privileges[$role]); } }