| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public function handle($request, \Closure $next) |
||
| 10 | { |
||
| 11 | foreach (Integration\Joints\FileStorageAccessJoint::collect() as $joint) { |
||
| 12 | if ($joint->accessGranted($request)) { |
||
| 13 | $this->logFileAccess($request->get('id'), $request->get('action', 'download')); |
||
| 14 | |||
| 15 | return $next($request); |
||
| 16 | } |
||
| 17 | } |
||
| 18 | |||
| 19 | return response('No access to file', 401); |
||
| 20 | } |
||
| 36 |