Javi Martín
8c8c99eb2c
Correctly check permissions in locales controller
...
We were using `authorize_resource`, passing it an unnamed parameter.
When that happens, CanCanCan only checks permissions to read that
resource. But, in this case, we want to check the permission to update
that resource before the `update` action.
Most of the time, it doesn't really matter, but, for example, in our
demo we're going to restrict the locales configuration so locales cannot
be updated on the main tenant (but they can be updated on other
tenants).
2024-06-25 18:23:50 +02:00
..
2024-05-09 14:28:32 +02:00
2023-08-18 14:56:16 +02:00
2022-04-07 19:35:40 +02:00
2024-04-02 16:31:10 +02:00
2023-09-07 19:14:03 +02:00
2024-06-13 19:13:01 +02:00
2020-12-16 13:16:45 +01:00
2024-06-05 16:10:56 +02:00
2022-04-07 19:35:40 +02:00
2019-10-24 17:11:47 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2023-08-18 14:56:16 +02:00
2019-10-24 17:11:47 +02:00
2021-10-25 18:01:47 +02:00
2021-10-25 18:01:47 +02:00
2019-11-05 13:09:38 +01:00
2019-11-01 20:08:46 +01:00
2019-11-01 20:08:46 +01:00
2023-11-20 14:22:12 +01:00
2021-10-25 18:01:47 +02:00
2023-08-18 14:56:16 +02:00
2019-11-06 00:04:02 +01:00
2019-10-24 17:11:47 +02:00
2019-10-24 17:11:47 +02:00
2021-12-20 15:07:43 +01:00
2023-11-20 14:22:12 +01:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2019-11-08 19:15:04 +01:00
2023-08-18 14:56:16 +02:00
2024-06-25 18:23:50 +02:00
2021-08-16 16:31:04 +02:00
2021-09-03 11:49:53 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2021-09-03 11:49:53 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2020-12-04 19:57:05 +01:00
2020-06-11 18:39:57 +02:00
2019-11-01 20:08:46 +01:00
2019-11-01 20:08:46 +01:00
2022-04-07 19:35:40 +02:00
2024-01-25 18:29:38 +01:00
2023-11-20 14:22:12 +01:00
2024-05-09 14:28:32 +02:00
2023-08-18 14:56:16 +02:00
2022-06-13 17:39:53 +02:00
2022-12-29 15:43:16 +01:00
2020-07-17 22:21:52 +02:00
2023-11-20 14:22:12 +01:00
2022-04-07 19:35:40 +02:00
2023-08-18 14:56:16 +02:00