function tmgmt_job_item_review_access in Translation Management Tool 7
Access callback wrapper for reviewing a job item entity.
Parameters
TMGMTJobItem $item: The job item to check access for.
$account: (Optional) The user to check for. Leave it to NULL to check for the global user.
Return value
boolean TRUE if access is allowed, FALSE otherwise.
Related topics
File
- ./
tmgmt.module, line 659 - Main module file for the Translation Management module.
Code
function tmgmt_job_item_review_access(TMGMTJobItem $item, $account = NULL) {
if ($item
->isNeedsReview() && $item
->getSourceController() && $item
->getTranslatorController()) {
return tmgmt_job_item_access('accept', $item, $account);
}
return FALSE;
}