| @@ 100-102 (lines=3) @@ | ||
| 97 | $vatrate = "0.000"; |
|
| 98 | ||
| 99 | // Access control |
|
| 100 | if (!$conf->facture->enabled || !$user->rights->flightlog->vol->financial || !$user->rights->flightlog->vol->financialGenerateDocuments) { |
|
| 101 | accessforbidden(); |
|
| 102 | } |
|
| 103 | ||
| 104 | // Default action |
|
| 105 | if (empty($action)) { |
|
| @@ 105-107 (lines=3) @@ | ||
| 102 | $billHandler = new CreatePilotYearBillCommandHandler($db, $conf->global, $user, $langs, $flightTypes); |
|
| 103 | ||
| 104 | // Access control |
|
| 105 | if (!$conf->facture->enabled || !$user->rights->flightlog->vol->status || !$user->rights->flightlog->vol->financialGenerateDocuments) { |
|
| 106 | accessforbidden(); |
|
| 107 | } |
|
| 108 | ||
| 109 | // Default action |
|
| 110 | if (empty($action)) { |
|
| @@ 60-62 (lines=3) @@ | ||
| 57 | $vatrate = "0.000"; |
|
| 58 | ||
| 59 | // Access control |
|
| 60 | if (!$conf->expensereport->enabled || !$user->rights->flightlog->vol->status || !$user->rights->flightlog->vol->financialGenerateDocuments) { |
|
| 61 | accessforbidden(); |
|
| 62 | } |
|
| 63 | ||
| 64 | // Default action |
|
| 65 | if (empty($action)) { |
|