aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-08 13:22:15 +0000
committerMario <mario@mariovavti.com>2022-01-08 13:22:15 +0000
commitb14a530efb7aeb983f369535d56f62e32043ee39 (patch)
tree6ef0f7016e451ee57f7581522c6311728d275b90
parentf70bc571bd0ccaf99d6a5605fe301ee2d28ded19 (diff)
downloadvolse-hubzilla-b14a530efb7aeb983f369535d56f62e32043ee39.tar.gz
volse-hubzilla-b14a530efb7aeb983f369535d56f62e32043ee39.tar.bz2
volse-hubzilla-b14a530efb7aeb983f369535d56f62e32043ee39.zip
missing nav_set_selected()
-rw-r--r--Zotlabs/Module/Permcats.php18
-rw-r--r--Zotlabs/Module/Tokens.php2
2 files changed, 4 insertions, 16 deletions
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;