fix code for routs and service
This commit is contained in:
@@ -9,10 +9,11 @@ class VerifyBySupervisorRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return Gate::allows('gate-supervise-road-observed');
|
||||
return Gate::allows('gate-supervise-road-observed',$this->roadObserved);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user