mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-21 06:20:17 +00:00
Fix logic error in hide_TODO setting.
This commit is contained in:
parent
ea5a7987e4
commit
0ff0f66b2d
@ -89,8 +89,7 @@ if ( $mode == 'caldav' ) {
|
|||||||
if ( $collection->Privileges() != privilege_to_bits('DAV::all') ) {
|
if ( $collection->Privileges() != privilege_to_bits('DAV::all') ) {
|
||||||
$where .= " AND (calendar_item.class != 'PRIVATE' OR calendar_item.class IS NULL) ";
|
$where .= " AND (calendar_item.class != 'PRIVATE' OR calendar_item.class IS NULL) ";
|
||||||
}
|
}
|
||||||
|
if ( isset($c->hide_TODO) && $c->hide_TODO && ! $collection->HavePrivilegeTo('all') )
|
||||||
if ( isset($c->hide_TODO) && $c->hide_TODO && ! $collection->Privileges() == privilege_to_bits('all') ) {
|
|
||||||
$where .= " AND caldav_data.caldav_type NOT IN ('VTODO') ";
|
$where .= " AND caldav_data.caldav_type NOT IN ('VTODO') ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user