mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-09 11:29:01 +00:00
fix checking if group is in mandatory approvers
This commit is contained in:
parent
62ce0e7440
commit
3d030d4396
|
@ -647,7 +647,7 @@ console.log(params);
|
||||||
$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($usr->getId(), $mapprovers['g']))
|
if(in_array($grp->getId(), $mapprovers['g']))
|
||||||
$option[] = array(array('disabled', 'disabled'), array('data-subtitle', getMLText('group_is_mandatory_approver')));
|
$option[] = array(array('disabled', 'disabled'), array('data-subtitle', getMLText('group_is_mandatory_approver')));
|
||||||
$options[] = $option;
|
$options[] = $option;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user