mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-28 05:53:35 +00:00
Still use the user_no in the query, but base it on the path.
This commit is contained in:
parent
493632a437
commit
36b0d7bc67
@ -20,7 +20,7 @@ if ( ! isset($permissions['read']) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$qry = new PgQuery( "SELECT * FROM caldav_data WHERE dav_name = ? ;", $request_path);
|
||||
$qry = new PgQuery( "SELECT * FROM caldav_data WHERE user_no = ? AND dav_name = ? ;", $path_user_no, $request_path);
|
||||
dbg_error_log("get", "%s", $qry->querystring );
|
||||
if ( $qry->Exec("GET") && $qry->rows == 1 ) {
|
||||
$event = $qry->Fetch();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user