Skip to content

Commit

Permalink
Added $this->fields['can_edit'] in the canedit computation (#1127)
Browse files Browse the repository at this point in the history
To fix #1122
  • Loading branch information
tomolimo authored Oct 6, 2016
1 parent 2651282 commit 0ed6055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/commonitiltask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ static function genericDisplayPlanningItem($itemtype, array $val, $who, $type=""
function showInObjectSumnary(CommonITILObject $item, $rand, $showprivate=false) {
global $DB, $CFG_GLPI;

$canedit = $this->canEdit($this->fields['id']);
$canedit = (isset($this->fields['can_edit']) && !$this->fields['can_edit']) ? false : $this->canEdit($this->fields['id']);
$canview = $this->canViewItem();

echo "<tr class='tab_bg_";
Expand Down

0 comments on commit 0ed6055

Please sign in to comment.