mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FIX: Category permission change not creating a log (#20027)
It didn't create a log if the category was public { "everyone" => 1 }
This commit is contained in:
@ -196,6 +196,7 @@ class CategoriesController < ApplicationController
|
||||
category_params[:minimum_required_tags] = 0 if category_params[:minimum_required_tags]&.blank?
|
||||
|
||||
old_permissions = cat.permissions_params
|
||||
old_permissions = { "everyone" => 1 } if old_permissions.empty?
|
||||
|
||||
if result = cat.update(category_params)
|
||||
Scheduler::Defer.later "Log staff action change category settings" do
|
||||
|
Reference in New Issue
Block a user