From c291f4e3627b41c923232dc20e668f20ddc51d7c Mon Sep 17 00:00:00 2001 From: Michael J Rubinsky Date: Sun, 11 Oct 2015 19:24:07 -0400 Subject: [PATCH] Bug: 14128 Need Horde_Perms::SHOW here so DAV clients match what Kronolith shows. Calendars with Horde_Perms::SHOW will show events with "Busy" titles only. Use the same logic when fetching events for DAV. --- kronolith/lib/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/lib/Application.php b/kronolith/lib/Application.php index 76d0d6b0bda..6cc1cfaff08 100644 --- a/kronolith/lib/Application.php +++ b/kronolith/lib/Application.php @@ -720,7 +720,7 @@ public function davGetObjects($collection) ->getInstance('Horde_Dav_Storage'); $internal = $dav->getInternalCollectionId($collection, 'calendar') ?: $collection; - if (!Kronolith::hasPermission($internal, Horde_Perms::READ)) { + if (!Kronolith::hasPermission($internal, Horde_Perms::SHOW)) { throw new Kronolith_Exception(_("Calendar does not exist or no permission to edit")); } @@ -761,7 +761,7 @@ public function davGetObject($collection, $object) ->getInstance('Horde_Dav_Storage'); $internal = $dav->getInternalCollectionId($collection, 'calendar') ?: $collection; - if (!Kronolith::hasPermission($internal, Horde_Perms::READ)) { + if (!Kronolith::hasPermission($internal, Horde_Perms::SHOW)) { throw new Kronolith_Exception(_("Calendar does not exist or no permission to edit")); }