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 /include/conversation.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 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php index 2e056b620..a56a765be 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1621,6 +1621,8 @@ function profile_tabs($a, $is_owner = false, $nickname = null){ $uid = ((App::$profile['profile_uid']) ? App::$profile['profile_uid'] : local_channel()); + $account_id = ((App::$profile['profile_uid']) ? App::$profile['channel_account_id'] : App::get_account_id()); + if($uid == local_channel()) { $cal_link = ''; @@ -1723,7 +1725,7 @@ function profile_tabs($a, $is_owner = false, $nickname = null){ ); } - if(feature_enabled($uid,'wiki') && (get_config('system','server_role') !== 'basic')) { + if(feature_enabled($uid,'wiki') && (get_account_techlevel($account_id) > 3)) { $tabs[] = array( 'label' => t('Wiki'), 'url' => z_root() . '/wiki/' . $nickname, |