Revision 9fdaa1e3
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Auth.pm | ||
---|---|---|
1360 | 1360 |
(SELECT ug.group_id |
1361 | 1361 |
FROM auth.user_group ug |
1362 | 1362 |
LEFT JOIN auth."user" u ON (ug.user_id = u.id) |
1363 |
WHERE u.login = ?)|; |
|
1363 |
WHERE u.login = ?) |
|
1364 |
AND group_id IN |
|
1365 |
(SELECT cg.group_id |
|
1366 |
FROM auth.clients_groups cg |
|
1367 |
WHERE cg.client_id = ?)|; |
|
1364 | 1368 |
|
1365 |
$sth = prepare_execute_query($::form, $dbh, $query, $login); |
|
1369 |
$sth = prepare_execute_query($::form, $dbh, $query, $login, $self->client->{id});
|
|
1366 | 1370 |
|
1367 | 1371 |
while ($row = $sth->fetchrow_hashref()) { |
1368 | 1372 |
$rights->{$row->{right}} |= $row->{granted}; |
Auch abrufbar als: Unified diff
Bei Clientanmeldung Zuweisung Gruppen<->Mandanten berücksichtigen