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]); } }