HOR-1113: Process supervisor - Review - Jump to

correcciones

.
This commit is contained in:
mcuiza
2016-06-08 10:46:58 -04:00
parent 012fa791f2
commit 9e78e01918
6 changed files with 53 additions and 1 deletions

View File

@@ -92,5 +92,23 @@ class ProcessUser extends BaseProcessUser
throw($oError);
}
}
public function validateUserAccess($proUid, $usrUid, $type)
{
try {
$oCriteria = new Criteria();
$oCriteria->add( ProcessUserPeer::PRO_UID, $proUid );
$oCriteria->add( ProcessUserPeer::USR_UID, $usrUid );
$oCriteria->add( ProcessUserPeer::PU_TYPE, $type );
$data = ProcessUserPeer::doSelectOne( $oCriteria );
if (! is_null( $data )) {
return true;
} else {
return false;
}
} catch (Exception $oError) {
throw ($oError);
}
}
}