diff options
author | mrjive <mrjive@mrjive.it> | 2018-04-12 10:12:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 10:12:46 +0200 |
commit | ea36ebd0df3d7612e5a524b7a287f9c57b8783b3 (patch) | |
tree | 02d1ed484823bd2c2b34aa85f153af3e1cc3c85e /include/features.php | |
parent | a7ff2cc5ea11afd7b832bef24866abfb0220d022 (diff) | |
parent | 3bd645033330c2db0952e57db1516274487c0712 (diff) | |
download | volse-hubzilla-ea36ebd0df3d7612e5a524b7a287f9c57b8783b3.tar.gz volse-hubzilla-ea36ebd0df3d7612e5a524b7a287f9c57b8783b3.tar.bz2 volse-hubzilla-ea36ebd0df3d7612e5a524b7a287f9c57b8783b3.zip |
Merge pull request #5 from redmatrix/dev
Dev
Diffstat (limited to 'include/features.php')
-rw-r--r-- | include/features.php | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/include/features.php b/include/features.php index 5481c37a4..c865f6754 100644 --- a/include/features.php +++ b/include/features.php @@ -44,7 +44,7 @@ function feature_level($feature,$def) { return $def; } -function get_features($filtered = true) { +function get_features($filtered = true, $level = (-1)) { $account = \App::get_account(); @@ -246,14 +246,23 @@ function get_features($filtered = true) { [ 'oauth_clients', - t('OAuth Clients'), - t('Manage authenticatication tokens for mobile and remote apps.'), + t('OAuth1 Clients'), + t('Manage OAuth1 authenticatication tokens for mobile and remote apps.'), false, get_config('feature_lock','oauth_clients'), feature_level('oauth_clients',1), ], [ + 'oauth2_clients', + t('OAuth2 Clients'), + t('Manage OAuth2 authenticatication tokens for mobile and remote apps.'), + false, + get_config('feature_lock','oauth2_clients'), + feature_level('oauth2_clients',1), + ], + + [ 'access_tokens', t('Access Tokens'), t('Create access tokens so that non-members can access private content.'), @@ -341,6 +350,15 @@ function get_features($filtered = true) { feature_level('suppress_duplicates',1), ], + [ + 'auto_save_draft', + t('Auto-save drafts of posts and comments'), + t('Automatically saves post and comment drafts in local browser storage to help prevent accidental loss of compositions'), + true, + get_config('feature_lock','auto_save_draft'), + feature_level('auto_save_draft',1), + ], + ], // Network Tools @@ -490,7 +508,7 @@ function get_features($filtered = true) { $arr = $x['features']; - $techlevel = get_account_techlevel(); + $techlevel = (($level >= 0) ? $level : get_account_techlevel()); // removed any locked features and remove the entire category if this makes it empty |