appification of privacy groups
This commit is contained in:
@@ -74,15 +74,6 @@ function get_features($filtered = true, $level = (-1)) {
|
||||
'access_control' => [
|
||||
t('Access Control and Permissions'),
|
||||
|
||||
[
|
||||
'groups',
|
||||
t('Privacy Groups'),
|
||||
t('Enable management and selection of privacy groups'),
|
||||
true,
|
||||
get_config('feature_lock','groups'),
|
||||
feature_level('groups',0),
|
||||
],
|
||||
|
||||
[
|
||||
'permcats',
|
||||
t('Permission Categories'),
|
||||
|
||||
@@ -274,7 +274,7 @@ function group_side($every="connections",$each="group",$edit = false, $group_id
|
||||
|
||||
$o = '';
|
||||
|
||||
if(! (local_channel() && feature_enabled(local_channel(),'groups'))) {
|
||||
if(! (local_channel() && \Zotlabs\Lib\Apps::system_app_installed(local_channel(), 'Privacy Groups'))) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ function nav($template = 'default') {
|
||||
if(! $_SESSION['delegate']) {
|
||||
$nav['manage'] = array('manage', t('Channel Manager'), "", t('Manage your channels'),'manage_nav_btn');
|
||||
}
|
||||
if(feature_enabled(local_channel(),'groups'))
|
||||
if(Apps::system_app_installed(local_channel(), 'Privacy Groups'))
|
||||
$nav['group'] = array('group', t('Privacy Groups'),"", t('Manage your privacy groups'),'group_nav_btn');
|
||||
|
||||
$nav['settings'] = array('settings', t('Settings'),"", t('Account/Channel Settings'),'settings_nav_btn');
|
||||
|
||||
Reference in New Issue
Block a user