FIX: Render detailed_404 page from 403 responses

This was previously broken by 59ef48c0b9d70a6639a545d1c96f3cc6f93ebf2c (#11425, #11424).

Centralize the logic into the exception controller, which avoids the problematic bug and makes it easy to add additional detailed 404 pages in the future.
This commit is contained in:
Kane York
2021-06-14 14:42:09 -07:00
committed by Kane York
parent d1b2e9db3b
commit f25c55b5be
4 changed files with 27 additions and 19 deletions

View File

@ -214,6 +214,7 @@ class CategoriesController < ApplicationController
'not in group',
@category,
custom_message: 'not_in_group.title_category',
custom_message_params: { group: group.name },
group: group
)
else