fix code for routs and service

This commit is contained in:
2025-02-26 13:39:54 +03:30
parent 2b132959d3
commit 98b3351842
3 changed files with 20 additions and 22 deletions

View File

@@ -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);
}
/**