Skip to content

Commit

Permalink
Don't even show alarm at all for private events.
Browse files Browse the repository at this point in the history
We don't include them on agendas, no reason to include
them with alarms.
  • Loading branch information
mrubinsk committed Nov 6, 2015
1 parent 6577a8d commit 779370a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kronolith/lib/Application.php
Expand Up @@ -522,6 +522,10 @@ public function listAlarms($time, $user = null)
'user' => $alarm_user
));
}
// Don't show alarms for private events if not the owner.
if ($event->isPrivate($alarm_user)) {
continue;
}
$shown_calendars = unserialize($prefs->getValue('display_cals'));
$reminder = $prefs->getValue('event_reminder');
if (($reminder == 'owner' && $alarm_user == $owner) ||
Expand Down

0 comments on commit 779370a

Please sign in to comment.