diff --git a/src/PdAuth/Middleware/Authenticate.php b/src/PdAuth/Middleware/Authenticate.php index 1eaa923..108f296 100644 --- a/src/PdAuth/Middleware/Authenticate.php +++ b/src/PdAuth/Middleware/Authenticate.php @@ -73,7 +73,7 @@ class Authenticate $match = []; foreach ($user['roles'] as $role) { if (array_key_exists($role['role']['role'], $privileges)) { - $match += $privileges[$role['role']['role']]; + $match += $privileges[$role['role']['key']]; } }