mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Better validation for manager_id
This commit is contained in:
parent
80393d73ae
commit
8937edb97e
|
@ -70,6 +70,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
||||||
'email' => 'email|nullable',
|
'email' => 'email|nullable',
|
||||||
'password' => 'required|min:6',
|
'password' => 'required|min:6',
|
||||||
'locale' => 'max:10|nullable',
|
'locale' => 'max:10|nullable',
|
||||||
|
'manager_id' => 'exists:users,id|nullable'
|
||||||
];
|
];
|
||||||
|
|
||||||
use Searchable;
|
use Searchable;
|
||||||
|
|
Loading…
Reference in a new issue