| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function get() |
||
| 12 | { |
||
| 13 | if (! backpack_user()->hasPermissionTo('courses.edit')) { |
||
|
|
|||
| 14 | abort(403); |
||
| 15 | } |
||
| 16 | |||
| 17 | $currentPeriod = Period::get_default_period(); |
||
| 18 | $enrollmentsPeriod = Period::get_enrollments_period(); |
||
| 19 | $availablePeriods = Period::all(); |
||
| 20 | |||
| 21 | return view('admin.defaultPeriodsSelection', compact('currentPeriod', 'enrollmentsPeriod', 'availablePeriods')); |
||
| 22 | } |
||
| 41 |