first cut of feature/techlevel merge

This commit is contained in:
zotlabs
2018-04-08 20:05:30 -07:00
parent 6ce3ca1ce0
commit e0255c0dc4
3 changed files with 33 additions and 6 deletions

View File

@@ -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();
@@ -499,7 +499,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