|
@@ 258-262 (lines=5) @@
|
| 255 |
|
|
| 256 |
|
if (!isset($_GET['action'])) { |
| 257 |
|
//delete - if user has right |
| 258 |
|
if (($user->rights->flightLog->vol->delete && $user->id == $pilot->id ) || $user->admin) { |
| 259 |
|
print '<a class="butActionDelete" href="fiche.php?action=delete&vol=' . $vol->getId() . '">' . $langs->trans('Delete') . '</a>'; |
| 260 |
|
} else { |
| 261 |
|
print '<a class="butActionRefused" href="#" title="' . dol_escape_htmltag($langs->trans("NotAllowed")) . '">' . $langs->trans('Delete') . '</a>'; |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
//facturer |
| 265 |
|
if ($user->rights->flightLog->vol->status && !$vol->is_facture) { |
|
@@ 272-276 (lines=5) @@
|
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
//bouton modifier si on a le droit ou si c'est son vol |
| 272 |
|
if ($user->rights->flightLog->vol->edit || $user->id == $pilot->id || $user->admin) { |
| 273 |
|
print '<a class="butAction" href="fiche.php?action=edit&vol=' . $vol->getId() . '">' . $langs->trans('Edit') . '</a>'; |
| 274 |
|
} else { |
| 275 |
|
print '<a class="butActionRefused" href="#" title="' . dol_escape_htmltag($langs->trans("NotAllowed")) . '">' . $langs->trans('Edit') . '</a>'; |
| 276 |
|
} |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
print '</div>'; |