mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Don't bypass validations.
This commit is contained in:
parent
fe7883eeea
commit
b0752b1f91
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user