22 lines
416 B
PHP
22 lines
416 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Interval;
|
|
|
|
use App\Http\Requests\AuthorizesAfterValidation;
|
|
use App\Http\Requests\CattrFormRequest;
|
|
|
|
class ScreenshotRequest extends CattrFormRequest
|
|
{
|
|
use AuthorizesAfterValidation;
|
|
|
|
public function authorizeValidated(): bool
|
|
{
|
|
return $this->user()->can('view', request('interval'));
|
|
}
|
|
|
|
public function _rules(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|