mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 04:04:03 -05:00
fix: API index answers 400 for a list in sort or direction instead of a 500 (#8427)
This commit is contained in:
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'));
|
||||
|
||||
Reference in new issue
Block a user