Skip to content

Commit

Permalink
Must include system calendars in _allCalendars.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 11, 2015
1 parent e98242b commit 44877fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kronolith/lib/CalendarsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ public function __construct($user = null)
foreach (Kronolith::listInternalCalendars(false, Horde_Perms::SHOW, $user) as $id => $calendar) {
$this->_allCalendars[$id] = new Kronolith_Calendar_Internal(array('share' => $calendar));
}

foreach ($GLOBALS['injector']->getInstance('Kronolith_Shares')->listSystemShares() as $id => $calendar) {
$this->_allCalendars[$id] = new Kronolith_Calendar_Internal(array('share' => $calendar));
}

$this->_displayCalendars = array_intersect($this->_displayCalendars, array_keys($this->_allCalendars));

// Check that the user owns a calendar if we aren't loading a different
Expand Down

0 comments on commit 44877fa

Please sign in to comment.