no need to check if group has users because it has been remove from the mandatory groups already

This commit is contained in:
Uwe Steinmann 2024-02-22 12:07:35 +01:00
parent 43f078a153
commit 36dbc1f825

View File

@ -364,7 +364,7 @@ $(document).ready(function() {
$options = array(); $options = array();
foreach ($docAccess["groups"] as $grp) { foreach ($docAccess["groups"] as $grp) {
$option = array($grp->getID(), htmlspecialchars($grp->getName()), null); $option = array($grp->getID(), htmlspecialchars($grp->getName()), null);
if(in_array($grp->getId(), $mreviewers['g']) || !$grp->getUsers()) if(in_array($grp->getId(), $mreviewers['g']))
$option[] = array(array('disabled', 'disabled'), array('data-subtitle', getMLText('group_is_mandatory_reviewer'))); $option[] = array(array('disabled', 'disabled'), array('data-subtitle', getMLText('group_is_mandatory_reviewer')));
$options[] = $option; $options[] = $option;
} }