mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 08:24:44 +08:00
FIX: Don't bypass validations.
This commit is contained in:
@ -151,7 +151,7 @@ class CategoriesController < ApplicationController
|
||||
|
||||
old_permissions = cat.permissions_params
|
||||
|
||||
if result = cat.update(category_params)
|
||||
if result = cat.update_attributes(category_params)
|
||||
Scheduler::Defer.later "Log staff action change category settings" do
|
||||
@staff_action_logger.log_category_settings_change(@category, category_params, old_permissions)
|
||||
end
|
||||
|
Reference in New Issue
Block a user