Skip to content

Commit

Permalink
fix canCreate on ItilOject when empty object called
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Feb 6, 2019
1 parent 9270802 commit f61f8c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/itilfollowup.class.php
Expand Up @@ -129,6 +129,10 @@ function canViewItem() {


function canCreateItem() {
if (!isset($this->fields['itemtype'])) {
return false;
}

$itilobject = new $this->fields['itemtype'];
if (!$itilobject->can($this->getField('items_id'), READ)
// No validation for closed tickets
Expand Down

0 comments on commit f61f8c0

Please sign in to comment.