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

Disallow users from editing their own requests once they've been submitted.

parent 60f32af7
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ class Requests_RequestModel extends Unl_Model
$requestIds = array();
foreach ($records as $recordId => $record) {
$records[$recordId]['visible'] = 'yes';
$records[$recordId]['canEdit'] = 'no';
$records[$recordId]['canEdit'] = $records[$recordId]['submitterAttentionRequired'];
$requestIds[] = $record['requestId'];
}
......
......@@ -171,8 +171,10 @@
</td>
<td>
<a href="<?php echo $this->baseUrl(); ?>/requests/view/index/id/<?php echo $request->getId(); ?>">View</a>
<?php if ($request->isEditable()) { ?>
/
<a href="<?php echo $this->baseUrl(); ?>/requests/edit/load/id/<?php echo $request->getId(); ?>">Edit</a>
<?php } ?>
</td>
<td>
<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment