Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Anomaly\SettingsModule\Http\Controller\Admin; |
||
26 | public function index(AddonTableBuilder $table, Authorizer $authorizer, $type) |
||
27 | { |
||
28 | if (!$authorizer->authorize('anomaly.module.settings::settings.write')) { |
||
29 | abort(403); |
||
30 | } |
||
31 | |||
32 | $table->setType($type); |
||
33 | |||
34 | return $table->render(); |
||
35 | } |
||
36 | |||
57 |