mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Fixed wonky rule
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
5ec8e2da66
commit
bbbfa91db9
|
@ -48,7 +48,7 @@ class DeleteUserRequest extends FormRequest
|
|||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'user' => ['in:null|not_in:auth()->user()->id'],
|
||||
'user' => Rule::notIn([auth()->user()->id]),
|
||||
'managed_users' => Rule::in([0]),
|
||||
'managed_locations' => Rule::in([0]),
|
||||
'assigned_assets' => Rule::in([0]),
|
||||
|
|
Loading…
Reference in a new issue