Skip to content

Commit

Permalink
Don't show form for approve/deny when petition is deleted (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionick authored Aug 24, 2022
1 parent b521ef2 commit 7052ecf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/View/CoPetitions/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@
print _txt('en.status.pt', null, $co_petitions[0]['CoPetition']['status']);
print '</span>';
$params = array('status' => $co_petitions[0]['CoPetition']['status']);
print $this->element("petitionActions", $params);
if(empty($co_petitions[0]['CoPetition']['deleted'])) {
print $this->element("petitionActions", $params);
}
?>
</div>
</li>
Expand Down

0 comments on commit 7052ecf

Please sign in to comment.