From 3d030d4396309f15285553bae6330ac25890a23f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 10 Sep 2024 10:05:45 +0200 Subject: [PATCH] fix checking if group is in mandatory approvers --- views/bootstrap/class.AddDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index 5738709f9..600d1cef7 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -647,7 +647,7 @@ console.log(params); $options = array(); foreach ($docAccess["groups"] as $grp) { $option = array($grp->getID(), htmlspecialchars($grp->getName()), null); - if(in_array($usr->getId(), $mapprovers['g'])) + if(in_array($grp->getId(), $mapprovers['g'])) $option[] = array(array('disabled', 'disabled'), array('data-subtitle', getMLText('group_is_mandatory_approver'))); $options[] = $option; }