mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
BUGFIX: Editing a category would break categories for the current user
session.
This commit is contained in:
parent
ca12ea42a7
commit
2b0151afe9
@ -41,6 +41,9 @@ class CategoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
if Category.topic_create_allowed(guardian).where(id: @category.id).exists?
|
||||
@category.permission = CategoryGroup.permission_types[:full]
|
||||
end
|
||||
render_serialized(@category, CategorySerializer)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user