mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
fixed performance in group view
This commit is contained in:
parent
f3a2bda1a5
commit
81ed14cc34
@ -2941,7 +2941,10 @@ function group_get_groups_list($id_user = false, $user_strict = false, $access =
|
|||||||
|
|
||||||
function groups_get_group_deep ($id_group) {
|
function groups_get_group_deep ($id_group) {
|
||||||
global $config;
|
global $config;
|
||||||
$parents = groups_get_parents($id_group, false);
|
|
||||||
|
$groups = users_get_groups(false, "AR", true, true);
|
||||||
|
|
||||||
|
$parents = groups_get_parents($id_group, false, $groups);
|
||||||
|
|
||||||
if (empty($parents)) {
|
if (empty($parents)) {
|
||||||
$deep = "";
|
$deep = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user