|
@@ 488-490 (lines=3) @@
|
| 485 |
|
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
| 486 |
|
} |
| 487 |
|
|
| 488 |
|
if ($user->rights->flightLog->vol->edit || ($user->rights->flightLog->vol->add && $object->fk_pilot == $user->id)) { |
| 489 |
|
print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=edit">' . $langs->trans("Modify") . '</a></div>' . "\n"; |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
if ($user->rights->flightLog->vol->delete || ($user->rights->flightLog->vol->add && $object->fk_pilot == $user->id && !$object->is_facture)) { |
| 493 |
|
print '<div class="inline-block divButAction"><a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=delete">' . $langs->trans('Delete') . '</a></div>' . "\n"; |
|
@@ 492-494 (lines=3) @@
|
| 489 |
|
print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=edit">' . $langs->trans("Modify") . '</a></div>' . "\n"; |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
if ($user->rights->flightLog->vol->delete || ($user->rights->flightLog->vol->add && $object->fk_pilot == $user->id && !$object->is_facture)) { |
| 493 |
|
print '<div class="inline-block divButAction"><a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=delete">' . $langs->trans('Delete') . '</a></div>' . "\n"; |
| 494 |
|
} |
| 495 |
|
print '</div>' . "\n"; |
| 496 |
|
} |
| 497 |
|
|