no need to check if group has users, because those groups have been removed from the mandatory already

This commit is contained in:
Uwe Steinmann 2024-02-22 12:06:16 +01:00
parent c5d44c3674
commit 43a22ea252

View File

@ -409,7 +409,7 @@ console.log(element);
$options = array();
foreach ($docAccess["groups"] as $grp) {
$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')));
$options[] = $option;
}