Skip to content

Commit

Permalink
Bug: 14128 Need Horde_Perms::SHOW here so DAV clients match what Kron…
Browse files Browse the repository at this point in the history
…olith shows.

Calendars with Horde_Perms::SHOW will show events with "Busy" titles
only. Use the same logic when fetching events for DAV.
  • Loading branch information
mrubinsk committed Oct 11, 2015
1 parent d0ea881 commit c291f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kronolith/lib/Application.php
Expand Up @@ -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"));
}

Expand Down Expand Up @@ -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"));
}

Expand Down

0 comments on commit c291f4e

Please sign in to comment.