mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: Category group permissions leaked to normal users.
After this commit, category group permissions can only be seen by users that are allowed to manage a category. In the past, we inadvertently included a category's group permissions settings in `CategoriesController#show` and `CategoriesController#find_by_slug` endpoints for normal users when those settings are only a concern to users that can manage a category.
This commit is contained in:
@@ -722,6 +722,7 @@ Discourse::Application.routes.draw do
|
||||
get "categories_and_top" => "categories#categories_and_top"
|
||||
|
||||
get "c/:id/show" => "categories#show"
|
||||
get "c/:id/visible_groups" => "categories#visible_groups"
|
||||
|
||||
get "c/*category_slug/find_by_slug" => "categories#find_by_slug"
|
||||
get "c/*category_slug/edit(/:tab)" => "categories#find_by_slug", constraints: { format: 'html' }
|
||||
|
||||
Reference in New Issue
Block a user