mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-04-30 00:04:52 +02:00
Append SAML_ prefix to groups
This commit is contained in:
parent
5cc52d9dd0
commit
48f331ff32
|
@ -50,8 +50,13 @@ class GroupBackend extends ABackend implements IAddToGroupBackend, ICountUsersBa
|
|||
|
||||
$groups = [];
|
||||
while( $row = $cursor->fetch()) {
|
||||
$groups[] = $row['gid'];
|
||||
$this->groupCache[$row['gid']] = $row['gid'];
|
||||
if (strlen($row['gid']) < 6 || substr($row['gid'], 0, 5) !== 'SAML_') {
|
||||
$groups[] = 'SAML_' . $row['gid'];
|
||||
$this->groupCache[$row['gid']] = 'SAML_' . $row['gid'];
|
||||
} else {
|
||||
$groups[] = $row['gid'];
|
||||
$this->groupCache[$row['gid']] = $row['gid'];
|
||||
}
|
||||
}
|
||||
$cursor->closeCursor();
|
||||
|
||||
|
|
Loading…
Reference in a new issue