aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Permcats.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Permcats.php')
-rw-r--r--Zotlabs/Module/Permcats.php18
1 files changed, 2 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);