Merged in luisfernandosl/processmaker/PM-3625 (pull request #2841)
PM-3625
This commit is contained in:
@@ -1586,6 +1586,16 @@ class Cases
|
|||||||
Validator::isString($usr_uid, '$usr_uid');
|
Validator::isString($usr_uid, '$usr_uid');
|
||||||
Validator::usrUid($usr_uid, '$usr_uid');
|
Validator::usrUid($usr_uid, '$usr_uid');
|
||||||
|
|
||||||
|
$arrayResult = $this->getStatusInfo($app_uid);
|
||||||
|
|
||||||
|
if ($arrayResult["APP_STATUS"] == "CANCELLED") {
|
||||||
|
throw new \Exception(\G::LoadTranslation("ID_CASE_CANCELLED", array($app_uid)));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($arrayResult["APP_STATUS"] == "COMPLETED") {
|
||||||
|
throw new \Exception(\G::LoadTranslation("ID_CASE_IS_COMPLETED", array($app_uid)));
|
||||||
|
}
|
||||||
|
|
||||||
$appCacheView = new \AppCacheView();
|
$appCacheView = new \AppCacheView();
|
||||||
$isProcessSupervisor = $appCacheView->getProUidSupervisor($usr_uid);
|
$isProcessSupervisor = $appCacheView->getProUidSupervisor($usr_uid);
|
||||||
$criteria = new \Criteria("workflow");
|
$criteria = new \Criteria("workflow");
|
||||||
|
|||||||
Reference in New Issue
Block a user