diff options
author | redmatrix <mike@macgirvin.com> | 2016-08-31 17:49:22 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-08-31 17:49:22 -0700 |
commit | ea0be8ea1a22abfdedae0d0c47677a9de44e08c0 (patch) | |
tree | 277e9a08e4958fef0801aeb83f73d2fb3cbee952 /Zotlabs/Lib/ThreadItem.php | |
parent | e9462ba14529b7172ba5a21e7985d24de91faa37 (diff) | |
download | volse-hubzilla-ea0be8ea1a22abfdedae0d0c47677a9de44e08c0.tar.gz volse-hubzilla-ea0be8ea1a22abfdedae0d0c47677a9de44e08c0.tar.bz2 volse-hubzilla-ea0be8ea1a22abfdedae0d0c47677a9de44e08c0.zip |
provide techlevels in the pro server role. Should have no visible effect on other roles.
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index eee3b2a4f..f50b9680e 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -246,10 +246,11 @@ class ThreadItem { } $server_role = get_config('system','server_role'); + $has_bookmarks = false; if(is_array($item['term'])) { foreach($item['term'] as $t) { - if(($server_role != 'basic') && ($t['ttype'] == TERM_BOOKMARK)) + if((get_account_techlevel() > 0) && ($t['ttype'] == TERM_BOOKMARK)) $has_bookmarks = true; } } |