mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
do not add group manager as mandatory reviewer/approver if logged in user is the manager itself
This commit is contained in:
parent
3538fd2616
commit
6731882ae0
|
@ -1075,7 +1075,9 @@ function getMandatoryReviewers($folder, $document, $user) { /* {{{ */
|
|||
foreach($groups as $group) {
|
||||
$managers = $group->getManagers();
|
||||
foreach($managers as $manager) {
|
||||
$revi[] = $manager->getId();
|
||||
/* Do not add myself, if I'm the manager of the group */
|
||||
if($manager->getId() != $user->getId())
|
||||
$revi[] = $manager->getId();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1170,7 +1172,9 @@ function getMandatoryApprovers($folder, $document, $user) { /* {{{ */
|
|||
foreach($groups as $group) {
|
||||
$managers = $group->getManagers();
|
||||
foreach($managers as $manager) {
|
||||
$appi[] = $manager->getId();
|
||||
/* Do not add myself, if I'm the manager of the group */
|
||||
if($manager->getId() != $user->getId())
|
||||
$appi[] = $manager->getId();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user