mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: wasn't able to save watched/tracked/muted categories/tags
This commit is contained in:
parent
41261b32a5
commit
f6c484881b
@ -864,12 +864,12 @@ class UsersController < ApplicationController
|
|||||||
:website,
|
:website,
|
||||||
:dismissed_banner_key,
|
:dismissed_banner_key,
|
||||||
:profile_background,
|
:profile_background,
|
||||||
:card_background,
|
:card_background
|
||||||
:muted_category_ids,
|
]
|
||||||
:watched_category_ids,
|
|
||||||
:tracked_category_ids,
|
permitted.concat UserUpdater::OPTION_ATTR
|
||||||
:watched_first_post_category_ids
|
permitted.concat UserUpdater::CATEGORY_IDS.keys.map { |k| { k => [] } }
|
||||||
] + UserUpdater::OPTION_ATTR
|
permitted.concat UserUpdater::TAG_NAMES.keys.map { |k| { k => [] } }
|
||||||
|
|
||||||
result = params
|
result = params
|
||||||
.permit(permitted)
|
.permit(permitted)
|
||||||
|
Loading…
Reference in New Issue
Block a user