@@ -28,10 +28,11 @@ |
||
28 | 28 | */ |
29 | 29 | public function index(ActivityLogDataTable $dataTable) |
30 | 30 | { |
31 | - if (Gate::denies('index-activitylog')) |
|
32 | - throw new AuthorizationException("This action is unauthorized."); |
|
33 | - else |
|
34 | - return $dataTable->render('activitylog.index'); |
|
31 | + if (Gate::denies('index-activitylog')) { |
|
32 | + throw new AuthorizationException("This action is unauthorized."); |
|
33 | + } else { |
|
34 | + return $dataTable->render('activitylog.index'); |
|
35 | + } |
|
35 | 36 | } |
36 | 37 | |
37 | 38 | } |