mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for checking valid project
This commit is contained in:
parent
613d7ad8f7
commit
1d8e5a33bf
@ -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'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user