only provide 'connected apps' on the settings menu if techlevel > 0.

This commit is contained in:
zotlabs 2017-05-30 22:22:31 -07:00
parent 909e618f6c
commit 5376b478b8

View File

@ -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(