pub calendar - add sql perms to the query (I forgot to do this)
This commit is contained in:
parent
2cac69ca86
commit
111f77ac64
|
@ -156,7 +156,7 @@ function cal_content(&$a) {
|
||||||
// get the permissions
|
// get the permissions
|
||||||
$sql_perms = item_permissions_sql($owner_uid,$remote_contact,$groups);
|
$sql_perms = item_permissions_sql($owner_uid,$remote_contact,$groups);
|
||||||
// we only want to have the events of the profile owner
|
// 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
|
// get the tab navigation bar
|
||||||
$tabs .= profile_tabs($a,false, $a->data['user']['nickname']);
|
$tabs .= profile_tabs($a,false, $a->data['user']['nickname']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user