fix: API index answers 400 for a list in sort or direction instead of a 500 (#8427)

This commit is contained in:
Harsh Singh authored and GitHub committed 2026-11-27 08:40:13 -05:00
1 parent b5e6456b15
commit fa28222141
7 files changed
+76

No files matched your search

@@ -44,6 +44,7 @@ class UsersController extends AppController {
throw new UnauthorizedException(__('Insufficient Privileges'));
return;
}
$this->requireScalarSort();
$users = $this->Paginator->paginate('User');
$this->set(compact('users'));