1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

Fix unaccepted invitations giving access to projects

This commit is contained in:
Bradley Schofield 2022-08-30 16:53:57 +01:00
parent e658457b1b
commit 9b3e333134

View file

@ -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'];