more intelligent handling of level 0 - and remove an extraneous logging function

This commit is contained in:
zotlabs 2018-04-08 22:09:08 -07:00
parent e4ee165e29
commit cda3d23508

View File

@ -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');