Fixes for checking valid project

This commit is contained in:
David Bomba 2021-12-17 09:56:09 +11:00
parent 613d7ad8f7
commit 1d8e5a33bf

View File

@ -49,8 +49,10 @@ class ValidProjectForClient implements Rule
$project = Project::find($this->input['project_id']);
if(!$project)
if(!$project){
$this->message = "Project not found";
return;
}
return $project->client_id == $this->input['client_id'];
}