aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;