diff options
author | Mario <mario@mariovavti.com> | 2022-01-08 13:22:15 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-08 13:22:15 +0000 |
commit | b14a530efb7aeb983f369535d56f62e32043ee39 (patch) | |
tree | 6ef0f7016e451ee57f7581522c6311728d275b90 /Zotlabs/Module/Permcats.php | |
parent | f70bc571bd0ccaf99d6a5605fe301ee2d28ded19 (diff) | |
download | volse-hubzilla-b14a530efb7aeb983f369535d56f62e32043ee39.tar.gz volse-hubzilla-b14a530efb7aeb983f369535d56f62e32043ee39.tar.bz2 volse-hubzilla-b14a530efb7aeb983f369535d56f62e32043ee39.zip |
missing nav_set_selected()
Diffstat (limited to 'Zotlabs/Module/Permcats.php')
-rw-r--r-- | Zotlabs/Module/Permcats.php | 18 |
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); |