From: rabuzarus <> Date: Wed, 22 Jun 2016 13:06:14 +0000 (+0200) Subject: pub calendar - add sql perms to the query (I forgot to do this) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=111f77ac64f954645bb4cbdbf654b14770fcb9a3;p=friendica.git pub calendar - add sql perms to the query (I forgot to do this) --- diff --git a/mod/cal.php b/mod/cal.php index e2c84204b4..b04c3aab42 100644 --- a/mod/cal.php +++ b/mod/cal.php @@ -156,7 +156,7 @@ function cal_content(&$a) { // get the permissions $sql_perms = item_permissions_sql($owner_uid,$remote_contact,$groups); // we only want to have the events of the profile owner - $sql_extra = " AND `event`.`cid` = 0 "; + $sql_extra = " AND `event`.`cid` = 0 " . $sql_perms; // get the tab navigation bar $tabs .= profile_tabs($a,false, $a->data['user']['nickname']);