diff options
author | redmatrix <mike@macgirvin.com> | 2016-08-31 19:55:45 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-08-31 19:55:45 -0700 |
commit | 4bdb02849980982f0e1f3cccc12386c2a800f0bd (patch) | |
tree | 55305053dbbe227eeda3f7a18d1041a99c0d9650 /Zotlabs/Module/Settings.php | |
parent | d18a8e849e5cd3b34ce53a2ea57a7ec8da86b829 (diff) | |
download | volse-hubzilla-4bdb02849980982f0e1f3cccc12386c2a800f0bd.tar.gz volse-hubzilla-4bdb02849980982f0e1f3cccc12386c2a800f0bd.tar.bz2 volse-hubzilla-4bdb02849980982f0e1f3cccc12386c2a800f0bd.zip |
Hubzilla pro: Don't offer 'custom/expert' permissions below a techlevel of 4; but any existing expert mode members are grandfathered in.
Diffstat (limited to 'Zotlabs/Module/Settings.php')
-rw-r--r-- | Zotlabs/Module/Settings.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Module/Settings.php b/Zotlabs/Module/Settings.php index 847f64da9..dedfdda86 100644 --- a/Zotlabs/Module/Settings.php +++ b/Zotlabs/Module/Settings.php @@ -1238,7 +1238,11 @@ class Settings extends \Zotlabs\Web\Controller { $permissions_role = 'custom'; $permissions_set = (($permissions_role != 'custom') ? true : false); - + + $perm_roles = \Zotlabs\Access\PermissionRoles::roles(); + if((get_account_techlevel() < 4) && $permissions_role !== 'custom') + unset($perm_roles[t('Other')]); + $vnotify = get_pconfig(local_channel(),'system','vnotify'); $always_show_in_notices = get_pconfig(local_channel(),'system','always_show_in_notices'); if($vnotify === false) @@ -1289,7 +1293,7 @@ class Settings extends \Zotlabs\Web\Controller { '$deny_gid' => acl2json($perm_defaults['deny_gid']), '$suggestme' => $suggestme, '$group_select' => $group_select, - '$role' => array('permissions_role' , t('Channel permissions category:'), $permissions_role, '', get_roles()), + '$role' => array('permissions_role' , t('Channel permissions category:'), $permissions_role, '', $perm_roles), '$profile_in_dir' => $profile_in_dir, '$hide_friends' => $hide_friends, |