" . $lang["error"] . ": " . $lang["status"] . " - " . $lang["save-conflict-error"] . ""; } else { $validstates = explode(',', $workflowaction['statusfrom']); $edit_access = get_edit_access($ref,$resource['archive'], $resource); if('' != $k || ($resource["lock_user"] > 0 && $resource["lock_user"] != $userref)) { $edit_access = 0; } if( in_array($resource['archive'], $validstates) && ( ( $edit_access && checkperm("e{$workflowaction['statusto']}") ) || checkperm("wf{$workflowaction['ref']}") ) ) { // Check whether More notes are present $more_notes_text = getval("more_workflow_action_" . $workflowaction["ref"],""); update_archive_status($ref, $workflowaction["statusto"], $resource["archive"], 0, $more_notes_text); hook("rse_wf_archivechange","",array($ref,$resource["archive"],$workflowaction["statusto"])); if (checkperm("z" . $workflowaction["statusto"])) { ?> " . $lang["rse_workflow_saved"] . " " . $lang["status" . $workflowaction["statusto"]] . ""; $resource["archive"]=$workflowaction["statusto"]; } } } } } } function HookRse_workflowViewAdditionaldownloadtabs() { include_once __DIR__ . "/../include/rse_workflow_functions.php"; global $lang, $ref, $resource, $baseurl_short, $search, $offset, $order_by, $archive, $sort, $edit_access, $curpos, $userref, $k, $internal_share_access,$modal; if(!empty($resource["lock_user"]) && $resource["lock_user"] != 0 && $resource["lock_user"] != $userref) { return false; } if($k != "" && $internal_share_access === false) { return false; } $validactions = rse_workflow_get_valid_actions(rse_workflow_get_actions(), false); if(count($validactions)>0) {?> 0) { ?>
: