From b14a530efb7aeb983f369535d56f62e32043ee39 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 8 Jan 2022 13:22:15 +0000 Subject: missing nav_set_selected() --- Zotlabs/Module/Permcats.php | 18 ++---------------- Zotlabs/Module/Tokens.php | 2 ++ 2 files changed, 4 insertions(+), 16 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Permcats.php b/Zotlabs/Module/Permcats.php index c33580f06..8be5bba88 100644 --- a/Zotlabs/Module/Permcats.php +++ b/Zotlabs/Module/Permcats.php @@ -132,6 +132,8 @@ class Permcats extends Controller { if(! local_channel()) return; + nav_set_selected('Contact Roles'); + $channel = App::get_channel(); if(argc() > 1) { @@ -143,22 +145,6 @@ class Permcats extends Controller { $pcat = new \Zotlabs\Lib\Permcat(local_channel()); $pcatlist = $pcat->listing(); -/* not yet ready - $test = $pcatlist[4]['perms']; - $role_sql = ''; - - foreach ($test as $t) - $role_sql .= "( k = '" . dbesc($t['name']) . "' AND v = '" . intval($t['value']) . "' ) OR "; - - $role_sql = rtrim($role_sql, ' OR '); - - // get all xchans belonging to a permission role - $q = q("SELECT xchan FROM abconfig WHERE chan = %d AND cat = 'my_perms' AND ( $role_sql ) GROUP BY xchan HAVING count(xchan) = %d", - intval(local_channel()), - intval(count($test)) - ); -*/ - $is_system_role = false; $delete_role_select_options = []; $is_default_role = (get_pconfig(local_channel(),'system','default_permcat','default') === $name); diff --git a/Zotlabs/Module/Tokens.php b/Zotlabs/Module/Tokens.php index eedbfcf30..9de54f568 100644 --- a/Zotlabs/Module/Tokens.php +++ b/Zotlabs/Module/Tokens.php @@ -229,6 +229,8 @@ class Tokens extends Controller { return Apps::app_render($papp, 'module'); } + nav_set_selected('Guest Access'); + $channel = App::get_channel(); $atoken = null; -- cgit v1.2.3