mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
FEATURE: Groundwork for schema theme settings UI (#25673)
This commit is the first of a series of commits that will allow themes to define complex settings types by declaring a schema of the setting structure that Discourse core will use to build a UI for the setting automatically. We implement the navigation logic and support for multiple levels of nesting in this commit and we'll continue building this new system gradually in future commits. Internal topic: t/116870.
This commit is contained in:
@ -329,6 +329,10 @@ class Admin::ThemesController < Admin::AdminController
|
||||
render json: updated_setting, status: :ok
|
||||
end
|
||||
|
||||
def schema
|
||||
raise Discourse::InvalidAccess if !SiteSetting.experimental_objects_type_for_theme_settings
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def ban_in_allowlist_mode!
|
||||
|
Reference in New Issue
Block a user