mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 13:35:20 -05:00
FIX: Render detailed_404 page from 403 responses
This was previously broken by 59ef48c0b9 (#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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user