diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-23 22:29:29 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-23 22:29:29 -0700 |
commit | 59a9f6bf026e533e0702c503be1ce046c032d68f (patch) | |
tree | cef712de5fbecbe7af5fb3a1f5e85586850d9e83 /include/contact_widgets.php | |
parent | 25988ddefa201eb031fac97d5046c19184d8d015 (diff) | |
parent | e67ff5c122087f878111ad99d1c3b2328b967ab2 (diff) | |
download | volse-hubzilla-59a9f6bf026e533e0702c503be1ce046c032d68f.tar.gz volse-hubzilla-59a9f6bf026e533e0702c503be1ce046c032d68f.tar.bz2 volse-hubzilla-59a9f6bf026e533e0702c503be1ce046c032d68f.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/contact_widgets.php')
-rw-r--r-- | include/contact_widgets.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php index a13f87573..9cc9f0baf 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -65,6 +65,10 @@ function categories_widget($baseurl,$selected = '') { if(! feature_enabled(App::$profile['profile_uid'],'categories')) return ''; + require_once('include/security.php'); + + $sql_extra = item_permissions_sql(App::$profile['profile_uid']); + $item_normal = item_normal(); $terms = array(); @@ -77,6 +81,7 @@ function categories_widget($baseurl,$selected = '') { and item.owner_xchan = '%s' and item.item_wall = 1 $item_normal + $sql_extra order by term.term asc", intval(App::$profile['profile_uid']), intval(TERM_CATEGORY), @@ -105,6 +110,8 @@ function cardcategories_widget($baseurl,$selected = '') { if(! feature_enabled(App::$profile['profile_uid'],'categories')) return ''; + $sql_extra = item_permissions_sql(App::$profile['profile_uid']); + $item_normal = "and item.item_hidden = 0 and item.item_type = 6 and item.item_deleted = 0 and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_pending_remove = 0 and item.item_blocked = 0 "; @@ -118,6 +125,7 @@ function cardcategories_widget($baseurl,$selected = '') { and term.otype = %d and item.owner_xchan = '%s' $item_normal + $sql_extra order by term.term asc", intval(App::$profile['profile_uid']), intval(TERM_CATEGORY), |