mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
DAVPrincipal->FetchProxyGroups(): invert arguments to pprivs()
this needs to be the other way round than above
This commit is contained in:
parent
83e9106160
commit
7181e466eb
@ -220,7 +220,7 @@ class DAVPrincipal extends Principal
|
||||
}
|
||||
}
|
||||
|
||||
$sql = 'SELECT principal_id, username, pprivs(:request_principal::int8,principal_id,:scan_depth::int) FROM principal JOIN usr USING(user_no) WHERE usr.active=true AND principal_id IN (SELECT * from grants_proxy_access_from_p(:request_principal,:scan_depth))';
|
||||
$sql = 'SELECT principal_id, username, pprivs(principal_id,:request_principal::int8,:scan_depth::int) FROM principal JOIN usr USING(user_no) WHERE usr.active=true AND principal_id IN (SELECT * from grants_proxy_access_from_p(:request_principal,:scan_depth))';
|
||||
$qry = new AwlQuery($sql, $params ); // reuse $params assigned for earlier query
|
||||
if ( $qry->Exec('DAVPrincipal') && $qry->rows() > 0 ) {
|
||||
while( $relationship = $qry->Fetch() ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user