Skip to content
Snippets Groups Projects
Commit a56b6d52 authored by Tim Steiner's avatar Tim Steiner
Browse files

Allow selective editing based on an Approval Body's Approval Actions

parent 7796f14c
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,10 @@ class ApprovalBodyRole extends Nmc_Db_Table_Row
public function canEditRequest(Request $request)
{
if ($this->getPrimaryKey() == 1) {
return true;
}
$action = $request->getCurrentAction();
$row = ApprovalBodyRoleQueues::getInstance()->fetchByRequestActionAndRole($request, $action, $this);
if ($row && $row->canEdit == 'yes') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment