From d443511b6caf995afacbea40e2ada5a2d1be6014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 3 Oct 2017 09:32:21 +0200 Subject: [PATCH] :ambulance: fix(core): Use ogroups instead of posix when mixed-group is installed When mixed-groups is installed, the userGroupSelect dialog should allow to select object groups as they can be posix groups as well issue #5694 --- include/select/userGroupSelect/class_userGroupSelect.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/select/userGroupSelect/class_userGroupSelect.inc b/include/select/userGroupSelect/class_userGroupSelect.inc index b3941a2b0..4a9dfc6f1 100644 --- a/include/select/userGroupSelect/class_userGroupSelect.inc +++ b/include/select/userGroupSelect/class_userGroupSelect.inc @@ -22,6 +22,14 @@ class userGroupSelect extends userSelect { protected $objectTypes = array('user', 'group'); protected $autoFilterAttributes = array('dn', 'cn', 'uid', 'description'); + + function __construct() + { + if (class_available('mixedGroup')) { + $this->objectTypes = array('user', 'ogroup'); + } + parent::__construct(); + } } class userGroupRoleSelect extends userGroupSelect -- GitLab