Commit Graph
666 Commits
Author SHA1 Message Date
Isaac ConnorandClaude Opus 4.8 d248166000 fix: remove the per-user ability to disable the API refs #4908
Disabling the API per user made pages that rely on it (Montage Review and
others) fail silently: the AJAX event queries came back 401
"API disabled for: <user>" and the page just drew empty boxes with no
indication of why.

Rather than keep a foot-gun that makes the UI look broken, drop the per-user
API-disable control entirely:

- AppController no longer rejects an authenticated user because APIEnabled != 1;
  the API is available to any authenticated user.
- Remove the APIEnabled selector from the user edit view and the APIEnabled
  column from the users list and the API options tab. The API options tab keeps
  its token management (New Token, Revoke Token, Revoke All Tokens).
- The user token section no longer hides itself based on APIEnabled.

The Users.APIEnabled column and the model default are left in place so no
database migration is needed; the value is simply no longer consulted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-15 11:58:24 -05:00
Isaac Connor f3b2027e1b Merge pull request #5945 from AJ0070/api-monitor-zone-event-fixes
fix: API deleted monitors, default zone, monitor and zone validation, event pagination and file fields
2026-11-15 11:31:23 -05:00
Isaac Connor 8d3b582ccb Merge pull request #5984 from AJ0070/api-disk-percent-consistent
fix: consistent getDiskPercent result and per-monitor storage path
2026-11-15 11:26:36 -05:00
Isaac Connor 2a12d5a0ec Merge pull request #5978 from AJ0070/api-filter-in-values
fix: API IN values, events limit/page validation and default order
2026-11-15 11:26:11 -05:00
Isaac Connor 6c557c95f4 Merge pull request #5982 from AJ0070/api-delete-json-response
fix: JSON responses for API deletes, 500 when the delete fails
2026-11-15 11:25:56 -05:00
Isaac Connor 598a84f3b5 Merge pull request #5689 from AJ0070/zmu-credentials-escaping
fix: stop escapeshellcmd mangling escaped zmu and daemon arguments
2026-11-15 11:24:34 -05:00
Jash d57fc6339d fix: return the same usage shape for one monitor in getDiskPercent and use each monitor's storage area refs #5983 2026-11-15 13:22:58 +05:30
Jash 8924411e68 fix: answer API deletes with a JSON message and a 500 on failure instead of an empty 200 refs #5981 2026-11-15 13:22:49 +05:30
Jash ab5f1bca2d fix: parse API IN:(a,b) values, validate events limit and page, and order the events index by Id refs #5977 2026-11-15 12:58:02 +05:30
Jash 8599c75703 fix: return 0 for the API event fileExists and fileSize when the video is missing refs #5944 2026-11-15 11:17:26 +05:30
Jash 50b900cb57 fix: report no next page in the unpaginated API events index refs #5944 2026-11-15 11:17:26 +05:30
Jash 462409ce1a fix: validate API zone coordinates and write percentages with decimals refs #5944 2026-11-15 11:17:26 +05:30
Jash f7e16bdaa7 fix: reject a blank monitor name, zero size and unknown server or storage in the API refs #5944 2026-11-15 11:17:26 +05:30
Jash d949f57f6f fix: add the default All zone when the API creates a monitor refs #5944 2026-11-15 11:17:26 +05:30
Jash 42a2345a88 fix: hide deleted monitors from the API monitor and group lists refs #5944 2026-11-15 11:17:13 +05:30
Isaac Connor f6fb3c5cf5 Merge pull request #5755 from AJ0070/group-fixes
fix: monitor group filter, edit modal and delete
2026-11-14 23:50:15 -05:00
Isaac Connor a80850bd06 Merge pull request #5929 from AJ0070/encoder-form-fixes
fix: monitor form encoder list, codec filter and API webm container
2026-11-14 23:49:40 -05:00
Isaac Connor 8a332543b3 Merge pull request #5743 from AJ0070/ms-api-add-remote-start
fix: start zmc on the monitor's own server when the API adds a monitor
2026-11-14 23:32:15 -05:00
Jash cd48a6967d fix: accept the webm output container when saving a monitor through the API refs #5928 2026-11-15 09:47:15 +05:30
Isaac Connor dc9b7be9ae Merge pull request #5727 from AJ0070/api-tags-perm
fix: check Events permission in the tags API
2026-11-14 19:56:13 -05:00
Isaac Connor 18dee7a711 Merge pull request #5803 from AJ0070/zone-followups
fix: zone filter typing, pixel zone bounds, API reload and delete restarts
2026-11-14 18:48:36 -05:00
Isaac Connor 28d463b325 Merge pull request #5913 from AJ0070/api-snapshot-tag-saves
fix: API snapshots and tags index, save errors and tag delete
2026-11-14 18:46:41 -05:00
Isaac Connor e2b3550b1b Merge pull request #5919 from AJ0070/api-admin-resource-saves
fix: id pinning and validation errors in API resource saves
2026-11-14 18:05:45 -05:00
Isaac Connor 2e3fd5e7e8 Merge pull request #5915 from AJ0070/api-resource-routes
fix: map API storage, camera_models and zone_presets resources
2026-11-14 18:05:23 -05:00
Isaac Connor 312a16447c Merge pull request #5917 from AJ0070/api-log-key
fix: use Id as the API log key and fix logs view, add and filters
2026-11-14 18:05:02 -05:00
Isaac Connor 07153c73d8 Merge pull request #5811 from AJ0070/notifications-validation
fix: validate Notifications API input
2026-11-14 15:38:41 -05:00
Jash b5fa1aa4b3 fix: check string lengths against the schema in API saves so an over-long value is a field error and not a 500 refs #5918 2026-11-14 23:05:47 +05:30
Jash 001f97069a fix: answer the API event data add and edit in JSON with the result and validation errors refs #5918 2026-11-14 23:05:47 +05:30
Jash 65b56bc90b fix: pin the API encoder template id on save, answer a failed save with 422 and require Params on create refs #5918 2026-11-14 23:05:47 +05:30
Jash 4f14a7fc29 fix: serialize the API zone preset view, pin its id on save and answer a failed add or edit with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash e599232ff5 fix: look up an API server stat by its own alias in view, pin its id on save and answer a failed add or edit with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash dbc664a6f4 fix: pin the API manufacturer and model id on save, refuse duplicate names and answer a failed add with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash 0d2cdc7dbc fix: pin the API storage id on save, answer a failed add or edit with the validation errors and refuse to delete a storage area in use refs #5918 2026-11-14 23:05:46 +05:30
Jash 5866cdc6eb fix: pin the API server id on save and answer a failed server add or edit with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash 7c466cee05 fix: use the Id column as the API log key, apply named filters to the logs index, serialize the log view and require the not null log fields refs #5916 2026-11-14 23:05:29 +05:30
Jash 737377d90c fix: map the API storage, camera_models and zone_presets resources to their controllers refs #5914 2026-11-14 23:05:22 +05:30
Jash 651e107f41 fix: read EventIds from a flat or JSON API tag add so the events are linked refs #5912 2026-11-14 23:05:16 +05:30
Jash a37b7c0952 fix: answer a failed API tag add or edit with the validation errors, refuse a duplicate tag name and let a tag with events be deleted refs #5912 2026-11-14 23:05:16 +05:30
Jash da502b0a5e fix: read EventIds from a flat or JSON API snapshot add so the events are linked refs #5912 2026-11-14 23:05:16 +05:30
Jash 9bb77bbf6b fix: stop the API snapshots index repeating a snapshot per event, return the events in associations and the validation errors on a failed add or edit refs #5912 2026-11-14 23:05:16 +05:30
Isaac Connor 40ada52b42 Merge pull request #5835 from AJ0070/api-input-validation
fix: validate API input against the column types before saving
2026-11-14 11:59:38 -05:00
Isaac Connor 7ba565221a Merge pull request #5827 from AJ0070/api-filter-fixes
fix: API filter parsing for intervals, IS NULL, operators and ambiguous columns
2026-11-14 11:52:07 -05:00
Isaac Connor a4daebd2a6 Merge pull request #5829 from AJ0070/api-host-fixes
fix: API daemon control permission level, daemonCheck error and daemonStatus
2026-11-14 11:51:22 -05:00
Isaac Connor dd9134dcdd Merge pull request #5831 from AJ0070/api-groups-fixes
fix: API group parent loops and add/edit error responses
2026-11-14 11:50:52 -05:00
Isaac Connor 0796ccd825 Merge pull request #5833 from AJ0070/api-edit-responses
fix: API configs and zones edit responses
2026-11-14 11:50:23 -05:00
Jash 001891a5f1 fix: ignore non-string token and password request values refs #5858 2026-11-14 19:16:47 +05:30
Jash 23daf1e42c fix: validate username uniqueness and length on the User model refs #5858 2026-11-14 19:16:47 +05:30
Jash 78f591b721 fix: build the legacy plain credentials from the authenticated user refs #5858 2026-11-14 19:16:47 +05:30
Jash 0434acc1fb fix: serialize the roles index for JSON responses refs #5858 2026-11-14 19:16:47 +05:30
Jash d0531a5072 fix: return a validation error instead of a 500 for an API state without a definition or a zone without coords refs #5834 2026-11-14 18:57:35 +05:30