We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
add_subgroup()
1 parent 26a9500 commit 3a4d556Copy full SHA for 3a4d556
1 file changed
application/libraries/Aauth.php
@@ -1440,6 +1440,22 @@ public function add_subgroup($group_par, $subgroup_par) {
1440
return FALSE;
1441
}
1442
1443
+ if ($group_groups = $this->get_subgroups($group_id)) {
1444
+ foreach ($group_groups as $item) {
1445
+ if ($item->subgroup_id == $subgroup_id) {
1446
+ return false;
1447
+ }
1448
1449
1450
+
1451
+ if ($subgroup_groups = $this->get_subgroups($subgroup_id)) {
1452
+ foreach ($subgroup_groups as $item) {
1453
+ if ($item->subgroup_id == $group_id) {
1454
1455
1456
1457
1458
1459
$query = $this->aauth_db->where('group_id',$group_id);
1460
$query = $this->aauth_db->where('subgroup_id',$subgroup_id);
1461
$query = $this->aauth_db->get($this->config_vars['group_to_group']);
0 commit comments