Skip to content

Commit

Permalink
forbid add followup for closed tickets see #4967
Browse files Browse the repository at this point in the history
Next actions to be done tommorrow
  • Loading branch information
moyooo committed Jun 2, 2015
1 parent 6a7a492 commit 53a8f86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/ticketfollowup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ function canViewItem() {
function canCreateItem() {

$ticket = new Ticket();
if (!$ticket->can($this->getField('tickets_id'), READ)) {
if (!$ticket->can($this->getField('tickets_id'), READ)
|| in_array($ticket->fields['status'],$ticket->getClosedStatusArray())) {
return false;
}
return $ticket->canAddFollowups();
Expand Down

0 comments on commit 53a8f86

Please sign in to comment.