From 91819bfc2d475e1b16d3f5e9ca685ca2531a9084 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 8 Feb 2017 17:21:32 -0800 Subject: bringer - all basic functionality is implemented --- include/features.php | 9 +++++++++ include/widgets.php | 8 ++++++++ 2 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/features.php b/include/features.php index 8ff0d2d21..0fc6fbc1d 100644 --- a/include/features.php +++ b/include/features.php @@ -148,6 +148,15 @@ function get_features($filtered = true) { feature_level('ajaxchat',1), ], + [ + 'permcats', + t('Permission Groups'), + t('Provide alternate connection permission roles.'), + false, + get_config('feature_lock','permcats'), + feature_level('permcats',2), + ], + [ 'smart_birthdays', t('Smart Birthdays'), diff --git a/include/widgets.php b/include/widgets.php index 408ba5d24..52f8fd655 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -661,6 +661,14 @@ function widget_settings_menu($arr) { ); } + if(feature_enabled(local_channel(),'permcats')) { + $tabs[] = array( + 'label' => t('Permission Categories'), + 'url' => z_root() . '/settings/permcats', + 'selected' => ((argv(1) === 'permcats') ? 'active' : ''), + ); + } + if($role === false || $role === 'custom') { $tabs[] = array( -- cgit v1.2.3