diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-08 22:09:08 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-08 22:09:08 -0700 |
commit | cda3d23508430f8c2dd07fe9d5731b0ba8f4aa24 (patch) | |
tree | b7ea0f7b93c89ab017709e720bd81102d527ff75 /Zotlabs/Module/Settings | |
parent | e4ee165e296404b5ff6ed8ee252c98313f84de91 (diff) | |
download | volse-hubzilla-cda3d23508430f8c2dd07fe9d5731b0ba8f4aa24.tar.gz volse-hubzilla-cda3d23508430f8c2dd07fe9d5731b0ba8f4aa24.tar.bz2 volse-hubzilla-cda3d23508430f8c2dd07fe9d5731b0ba8f4aa24.zip |
more intelligent handling of level 0 - and remove an extraneous logging function
Diffstat (limited to 'Zotlabs/Module/Settings')
-rw-r--r-- | Zotlabs/Module/Settings/Features.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Module/Settings/Features.php b/Zotlabs/Module/Settings/Features.php index 43ca57be2..888032c28 100644 --- a/Zotlabs/Module/Settings/Features.php +++ b/Zotlabs/Module/Settings/Features.php @@ -34,11 +34,16 @@ class Features { $level = get_account_techlevel(); } + if(! intval($level)) { + notice( t('Permission denied.') . EOL); + return; + } + $techlevels = \Zotlabs\Lib\Techlevels::levels(); - unset($techlevels[0]); + // This page isn't accessible at techlevel 0 - logger('techlevels: ' . print_r($techlevels,true)); + unset($techlevels[0]); $def_techlevel = (($level > 0) ? $level : 1); $techlock = get_config('system','techlevel_lock'); |