Skip to content

Commit

Permalink
Bug: 14568 Fix regression in honoring SHOW vs READ perms.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 1, 2017
1 parent 0541418 commit a32314a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kronolith/lib/Event.php
Expand Up @@ -2633,7 +2633,8 @@ public function isPrivate($user = null)

// Never private if private is not true or if the current user is the
// event creator.
if (!$this->private || $this->creator == $user) {
if ((!$this->private || $this->creator == $user) &&
$this->hasPermission(Horde_Perms::READ, $user)) {
return false;
}

Expand Down

0 comments on commit a32314a

Please sign in to comment.