Commit graph

4 commits

Author SHA1 Message Date
Anton Khorev
6569ed24e4 Add user block api call 2025-02-15 19:20:09 +03:00
Andy Allan
83425edd8d Move api error handling and timeouts to parent class
Fixes #4861

Since the around_action is defined before authorize_resource is called,
the handler needs to pass on the CanCan::AccessDenied exception.

I've added the timeouts where I think they were missing (e.g. UserPreferencesController)
but I've kept the exception for changeset#upload and traces#create
2024-10-02 16:37:32 +01:00
Andy Allan
c1cccd40fc Move check_api_readable to api_controller
It's easier to skip the check in the two places that we need to, and
include it by default everywhere else.
2024-05-29 14:54:16 +01:00
Anton Khorev
71654e563e Add show user block api endpoint 2023-09-09 15:53:22 +03:00