Commit 3e25a70ea66b41578dc8ae72109e5ab1481cb18a
1 parent
8b7c6814
Use GroupUtil::getMembershipReason to check if the user is a member of
the workflow transition guard group or any of its sub-groups. KTS-601 git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5106 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
lib/workflow/workflowutil.inc.php
| ... | ... | @@ -442,7 +442,8 @@ class KTWorkflowUtil { |
| 442 | 442 | $iGroupId = $oTransition->getGuardGroupId(); |
| 443 | 443 | if ($iGroupId) { |
| 444 | 444 | $oGroup =& Group::get($iGroupId); |
| 445 | - if (!$oGroup->hasMember($oUser)) { | |
| 445 | + $res = GroupUtil::getMembershipReason($oUser, $oGroup); | |
| 446 | + if (!is_string($res)) { | |
| 446 | 447 | continue; |
| 447 | 448 | } |
| 448 | 449 | } | ... | ... |