Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Add a validation of boolean to private flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
binal-7span committed Nov 12, 2019
1 parent 334c90b commit 379457d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Directus/Services/ProjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function create(array $data)

$this->validate($data,[
'project' => 'required|string|regex:/^[0-9a-z_-]+$/i',

'private' => 'bool',
'force' => 'bool',
'existing' => 'bool',
'super_admin_token' => 'required',
Expand Down

0 comments on commit 379457d

Please sign in to comment.