diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-30 22:22:31 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-30 22:22:31 -0700 |
commit | 5376b478b85bfa453dbb7ef5014be310297d07a8 (patch) | |
tree | 588d69f39857e7fb7bee0149185ce419efa6ccea /Zotlabs/Widget/Settings_menu.php | |
parent | 909e618f6ce5638e8205873aeb9a214a52cb379d (diff) | |
download | volse-hubzilla-5376b478b85bfa453dbb7ef5014be310297d07a8.tar.gz volse-hubzilla-5376b478b85bfa453dbb7ef5014be310297d07a8.tar.bz2 volse-hubzilla-5376b478b85bfa453dbb7ef5014be310297d07a8.zip |
only provide 'connected apps' on the settings menu if techlevel > 0.
Diffstat (limited to 'Zotlabs/Widget/Settings_menu.php')
-rw-r--r-- | Zotlabs/Widget/Settings_menu.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Zotlabs/Widget/Settings_menu.php b/Zotlabs/Widget/Settings_menu.php index 753390c23..c15ad0980 100644 --- a/Zotlabs/Widget/Settings_menu.php +++ b/Zotlabs/Widget/Settings_menu.php @@ -79,11 +79,13 @@ class Settings_menu { 'selected' => '' ); - $tabs[] = array( - 'label' => t('Connected apps'), - 'url' => z_root() . '/settings/oauth', - 'selected' => ((argv(1) === 'oauth') ? 'active' : ''), - ); + if(get_account_techlevel() > 0) { + $tabs[] = array( + 'label' => t('Connected apps'), + 'url' => z_root() . '/settings/oauth', + 'selected' => ((argv(1) === 'oauth') ? 'active' : ''), + ); + } if(get_account_techlevel() > 2) { $tabs[] = array( |