Fix unaccepted invitations giving access to projects
This commit is contained in:
parent
e658457b1b
commit
9b3e333134
1 changed files with 4 additions and 0 deletions
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue