diff --git a/src/Appwrite/Auth/Auth.php b/src/Appwrite/Auth/Auth.php index a8005be704..9f975cf576 100644 --- a/src/Appwrite/Auth/Auth.php +++ b/src/Appwrite/Auth/Auth.php @@ -316,6 +316,10 @@ class Auth } foreach ($user->getAttribute('memberships', []) as $node) { + if (!isset($node['confirm']) || !$node['confirm']) { + continue; + } + if (isset($node['teamId']) && isset($node['roles'])) { $roles[] = 'team:' . $node['teamId'];