Fixed wonky rule

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-22 19:40:26 +01:00
parent 5ec8e2da66
commit bbbfa91db9

View file

@ -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]),